diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2020-02-13 01:56:16 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2020-02-13 01:56:16 +0530 |
commit | 4ffb42c73eb1f00acaf055f832dd2364bba2f4d4 (patch) | |
tree | 82df567a029ba6546401e91772c91f14a698903c | |
parent | a8bca5f440510967764c9f4ed7978d42c30eef04 (diff) | |
download | nnn-4ffb42c73eb1f00acaf055f832dd2364bba2f4d4.tar.gz |
Use s in statusbar to indicate selection enabled
-rw-r--r-- | src/nnn.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -4671,8 +4671,8 @@ static void statusbar(char *path) if (cfg.blkorder) { /* du mode */ xstrlcpy(buf, coolsize(dir_blocks << blk_shift), 12); - mvprintw(xlines - 1, 0, "%d/%d [%d:%s] %cu:%s free:%s files:%lu %lldB %s", - cur + 1, ndents, cfg.selmode, + mvprintw(xlines - 1, 0, "%d/%d [%s:%s] %cu:%s free:%s files:%lu %lldB %s", + cur + 1, ndents, (cfg.selmode ? "s" : ""), ((g_states & STATE_RANGESEL) ? "*" : (nselected ? xitoa(nselected) : "")), (cfg.apparentsz ? 'a' : 'd'), buf, coolsize(get_fs_info(path, FREE)), num_files, (ll)pent->blocks << blk_shift, ptr); @@ -4685,8 +4685,8 @@ static void statusbar(char *path) strftime(buf, sizeof(buf), "%F %R", localtime(&pent->t)); buf[sizeof(buf)-1] = '\0'; - mvprintw(xlines - 1, 0, "%d/%d [%d:%s] %s%s %s %s %s", - cur + 1, ndents, cfg.selmode, + mvprintw(xlines - 1, 0, "%d/%d [%s:%s] %s%s %s %s %s", + cur + 1, ndents, (cfg.selmode ? "s" : ""), ((g_states & STATE_RANGESEL) ? "*" : (nselected ? xitoa(nselected) : "")), sort, buf, get_lsperms(pent->mode), coolsize(pent->size), ptr); } |