aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-09-15 18:25:11 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-09-15 18:25:11 +0530
commite68e8ad8a5ecbb58b776c04574b55e3c60936f93 (patch)
tree8a92a01c9a8d6932770d94810bdf010e65339b8a /src
parent6feaecafe2f576f3b67c8c67fc22df9115790701 (diff)
downloadnnn-e68e8ad8a5ecbb58b776c04574b55e3c60936f93.tar.gz
Show directory size
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 0fca4d7..9c2dc13 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2417,11 +2417,8 @@ static void printent_long(const struct entry *ent, int sel, uint namecols)
coolsize(cfg.blkorder ? ent->blocks << BLK_SHIFT : ent->size), pname);
break;
case S_IFDIR:
- if (cfg.blkorder)
- printw("%c%-16.16s %s %8.8s/ %s/\n",
- cp, timebuf, permbuf, coolsize(ent->blocks << BLK_SHIFT), pname);
- else
- printw("%c%-16.16s %s / %s/\n", cp, timebuf, permbuf, pname);
+ printw("%c%-16.16s %s %8.8s %s/\n", cp, timebuf, permbuf,
+ coolsize(cfg.blkorder ? ent->blocks << BLK_SHIFT : ent->size), pname);
break;
case S_IFLNK:
printw("%c%-16.16s %s @ %s@\n", cp, timebuf, permbuf, pname);