aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-01-23 21:21:24 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-01-23 21:21:24 +0530
commit50df09b9186cf7cf9dd11238de658e255140eafb (patch)
treed3b794055f8ad80ea405ff4b410f32a7445d2d7b
parentde4b81799850aba4a8ba7e4486a2942559c8c966 (diff)
downloadnnn-50df09b9186cf7cf9dd11238de658e255140eafb.tar.gz
Do not show file name in status bar
Both in light and detail modes we show more characters than in status bar.
-rw-r--r--src/nnn.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 5bbc000..095bf23 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4359,9 +4359,6 @@ static void statusbar(char *path)
(cfg.apparentsz ? 'a' : 'd'), buf, coolsize(get_fs_info(path, FREE)),
num_files, (ll)pent->blocks << blk_shift, ptr);
} else { /* light or detail mode */
- /* Show filename as it may be truncated in directory listing */
- /* Get the unescaped file name */
- char *fname = unescape(pent->name, NAME_MAX, NULL);
char sort[] = "\0\0\0\0";
getorderstr(sort);
@@ -4370,10 +4367,10 @@ 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 [%s]",
+ mvprintw(xlines - 1, 0, "%d/%d [%d:%s] %s%s %s %s %s",
cur + 1, ndents, cfg.selmode,
((g_states & STATE_RANGESEL) ? "*" : (nselected ? xitoa(nselected) : "")),
- sort, buf, get_lsperms(pent->mode), coolsize(pent->size), ptr, fname);
+ sort, buf, get_lsperms(pent->mode), coolsize(pent->size), ptr);
}
addch('\n');