Show current entry number.

...because you need to know where you are.
This commit is contained in:
Arun Prakash Jana 2017-09-27 02:08:58 +05:30
parent bc76c0f7ee
commit 082974dc8e
No known key found for this signature in database
GPG key ID: A75979F35C080412

2
nnn.c
View file

@ -2039,7 +2039,7 @@ redraw(char *path)
* be truncated in directory listing * be truncated in directory listing
*/ */
if (!cfg.blkorder) 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 { else {
i = sprintf(g_buf, "du: %s (%lu files) ", coolsize(dir_blocks << 9), num_files); 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); sprintf(g_buf + i, "vol: %s free [%s%s]", coolsize(get_fs_free(path)), unescape(dents[cur].name, 0), ind);