]> Sergey Matveev's repositories - nnn.git/commitdiff
Show current entry number.
authorArun Prakash Jana <engineerarun@gmail.com>
Tue, 26 Sep 2017 20:38:58 +0000 (02:08 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Tue, 26 Sep 2017 20:38:58 +0000 (02:08 +0530)
...because you need to know where you are.

nnn.c

diff --git a/nnn.c b/nnn.c
index eb26ab6e2733a6b33fa8146c65998c73a1b33bc1..5f85bdc59d102db8f53a3aa2739c697344f09f5e 100644 (file)
--- a/nnn.c
+++ b/nnn.c
@@ -2039,7 +2039,7 @@ redraw(char *path)
                         * be truncated in directory listing
                         */
                        if (!cfg.blkorder)
-                               sprintf(g_buf, "total %d %s[%s%s]", ndents, sort, unescape(dents[cur].name, 0), ind);
+                               sprintf(g_buf, "%d/%d %s[%s%s]", cur + 1, ndents, sort, unescape(dents[cur].name, 0), ind);
                        else {
                                i = sprintf(g_buf, "du: %s (%lu files) ", coolsize(dir_blocks << 9), num_files);
                                sprintf(g_buf + i, "vol: %s free [%s%s]", coolsize(get_fs_free(path)), unescape(dents[cur].name, 0), ind);