From: Arun Prakash Jana Date: Sat, 8 Feb 2020 12:15:49 +0000 (+0530) Subject: Show target file size in list mode X-Git-Tag: v3.0~11 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=72668069edc5499b6f4f3dce16a1de208f147075;p=nnn.git Show target file size in list mode --- diff --git a/src/nnn.c b/src/nnn.c index 8c7cfc32..71b5fc27 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -4369,7 +4369,7 @@ static int dentfill(char *path, struct entry **dents) if (!flags && dp->d_type == DT_LNK) { /* Do not add sizes for links */ dentp->mode = (sb.st_mode & ~S_IFMT) | S_IFLNK; - dentp->size = 0; + dentp->size = g_listpath ? sb.st_size : 0; } else { dentp->mode = sb.st_mode; dentp->size = sb.st_size;