mirror of
https://github.com/jarun/nnn.git
synced 2025-02-26 03:01:32 +00:00
Do not show file name in status bar
Both in light and detail modes we show more characters than in status bar.
This commit is contained in:
parent
de4b817998
commit
50df09b918
1 changed files with 2 additions and 5 deletions
|
@ -4359,9 +4359,6 @@ static void statusbar(char *path)
|
||||||
(cfg.apparentsz ? 'a' : 'd'), buf, coolsize(get_fs_info(path, FREE)),
|
(cfg.apparentsz ? 'a' : 'd'), buf, coolsize(get_fs_info(path, FREE)),
|
||||||
num_files, (ll)pent->blocks << blk_shift, ptr);
|
num_files, (ll)pent->blocks << blk_shift, ptr);
|
||||||
} else { /* light or detail mode */
|
} 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";
|
char sort[] = "\0\0\0\0";
|
||||||
|
|
||||||
getorderstr(sort);
|
getorderstr(sort);
|
||||||
|
@ -4370,10 +4367,10 @@ static void statusbar(char *path)
|
||||||
strftime(buf, sizeof(buf), "%F %R", localtime(&pent->t));
|
strftime(buf, sizeof(buf), "%F %R", localtime(&pent->t));
|
||||||
buf[sizeof(buf)-1] = '\0';
|
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,
|
cur + 1, ndents, cfg.selmode,
|
||||||
((g_states & STATE_RANGESEL) ? "*" : (nselected ? xitoa(nselected) : "")),
|
((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');
|
addch('\n');
|
||||||
|
|
Loading…
Add table
Reference in a new issue