aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-11-18 19:34:03 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-11-18 19:34:03 +0530
commit0ef9ec196e7fa0732a9bce5b3223d4e66a0997ba (patch)
treebb12d9d52650f9c5d12f48dd4fc435abac8b04e5 /src
parent3004694cd46baa2d5d208ae536d6537851e2cb60 (diff)
downloadnnn-0ef9ec196e7fa0732a9bce5b3223d4e66a0997ba.tar.gz
Use boxes to show number of selected files.
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 6be89fb..a267994 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3952,8 +3952,8 @@ static void redraw(char *path)
xstrlcpy(buf, coolsize(dir_blocks << blk_shift), 12);
c = cfg.apparentsz ? 'a' : 'd';
- mvprintw(lastln, 0, "%d/%d (%d) %cu:%s free:%s files:%lu %lldB %s",
- cur + 1, ndents, nselected, c, buf,
+ mvprintw(lastln, 0, "%d/%d [%s] %cu:%s free:%s files:%lu %lldB %s",
+ cur + 1, ndents, (nselected ? xitoa(nselected) : ""), c, buf,
coolsize(get_fs_info(path, FREE)), num_files,
(ll)pent->blocks << blk_shift, ptr);
} else { /* light or detail mode */
@@ -3965,8 +3965,8 @@ static void redraw(char *path)
strftime(buf, sizeof(buf), "%Y-%b-%d %R", localtime(&pent->t));
buf[sizeof(buf)-1] = '\0';
- mvprintw(lastln, 0, "%d/%d (%d) %s%s %s %s %s [%s]",
- cur + 1, ndents, nselected, sort, buf,
+ mvprintw(lastln, 0, "%d/%d [%s] %s%s %s %s %s [%s]",
+ cur + 1, ndents, (nselected ? xitoa(nselected) : ""), sort, buf,
get_lsperms(pent->mode), coolsize(pent->size), ptr, base);
}
} else