mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 13:51:31 +00:00
Show target file size in list mode
This commit is contained in:
parent
1d60b6a475
commit
72668069ed
|
@ -4369,7 +4369,7 @@ static int dentfill(char *path, struct entry **dents)
|
||||||
if (!flags && dp->d_type == DT_LNK) {
|
if (!flags && dp->d_type == DT_LNK) {
|
||||||
/* Do not add sizes for links */
|
/* Do not add sizes for links */
|
||||||
dentp->mode = (sb.st_mode & ~S_IFMT) | S_IFLNK;
|
dentp->mode = (sb.st_mode & ~S_IFMT) | S_IFLNK;
|
||||||
dentp->size = 0;
|
dentp->size = g_listpath ? sb.st_size : 0;
|
||||||
} else {
|
} else {
|
||||||
dentp->mode = sb.st_mode;
|
dentp->mode = sb.st_mode;
|
||||||
dentp->size = sb.st_size;
|
dentp->size = sb.st_size;
|
||||||
|
|
Loading…
Reference in a new issue