aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-09-27 17:37:36 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-09-27 17:37:36 +0530
commita594c876be1b19ec353e961afba4b7d02191cc89 (patch)
treeb745750b7b9f534ce993f40869a7b35b048efce7
parent082974dc8eb78f93288a237b4da7a10199b993ea (diff)
downloadnnn-a594c876be1b19ec353e961afba4b7d02191cc89.tar.gz
Show current entry number in du mode
-rw-r--r--nnn.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/nnn.c b/nnn.c
index 5f85bdc..5c465b0 100644
--- a/nnn.c
+++ b/nnn.c
@@ -2035,13 +2035,11 @@ redraw(char *path)
else
ind[0] = '\0';
- /* We need to show filename as it may
- * be truncated in directory listing
- */
+ /* We need to show filename as it may be truncated in directory listing */
if (!cfg.blkorder)
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);
+ i = sprintf(g_buf, "%d/%d du: %s (%lu files) ", cur + 1, ndents, 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);
}