aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-02-08 17:45:49 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-02-08 17:45:49 +0530
commit72668069edc5499b6f4f3dce16a1de208f147075 (patch)
tree8c5a0d709409ec5c5b695efe85c1a34882f98f4e
parent1d60b6a4759c0d78c5046e21a12dff9a667d90ae (diff)
downloadnnn-72668069edc5499b6f4f3dce16a1de208f147075.tar.gz
Show target file size in list mode
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 8c7cfc3..71b5fc2 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;