aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-09-27 02:08:58 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-09-27 02:08:58 +0530
commit082974dc8eb78f93288a237b4da7a10199b993ea (patch)
tree2a76a90322c7fca74897f0a6dd66be8a7d5e844b
parentbc76c0f7ee7d2e6e24edbbb23c17e68dc01d0b5e (diff)
downloadnnn-082974dc8eb78f93288a237b4da7a10199b993ea.tar.gz
Show current entry number.
...because you need to know where you are.
-rw-r--r--nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nnn.c b/nnn.c
index eb26ab6..5f85bdc 100644
--- 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);