]> Sergey Matveev's repositories - nnn.git/commitdiff
Show directory size
authorArun Prakash Jana <engineerarun@gmail.com>
Sun, 15 Sep 2019 12:55:11 +0000 (18:25 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sun, 15 Sep 2019 12:55:11 +0000 (18:25 +0530)
src/nnn.c

index 0fca4d78a941dc6e677159ae8bf440bcf105d96b..9c2dc1333996333a53c26734e74df0bc80e8a698 100644 (file)
--- 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);