nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 72668069edc5499b6f4f3dce16a1de208f147075
parent 1d60b6a4759c0d78c5046e21a12dff9a667d90ae
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Sat,  8 Feb 2020 17:45:49 +0530

Show target file size in list mode

Diffstat:
Msrc/nnn.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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;