mirror of
https://github.com/jarun/nnn.git
synced 2024-11-04 18:33:12 +00:00
Compact notation for time/size sort order
This commit is contained in:
parent
6fb4338ffa
commit
fabf9fd47b
11
src/nnn.c
11
src/nnn.c
|
@ -3178,15 +3178,12 @@ static void redraw(char *path)
|
||||||
|
|
||||||
if (cfg.showdetail) {
|
if (cfg.showdetail) {
|
||||||
if (ndents) {
|
if (ndents) {
|
||||||
char sort[] = "\0y time ";
|
char sort[] = "\0 ";
|
||||||
|
|
||||||
if (cfg.mtimeorder)
|
if (cfg.mtimeorder)
|
||||||
sort[0] = 'b';
|
sort[0] = 'T';
|
||||||
else if (cfg.sizeorder) {
|
else if (cfg.sizeorder)
|
||||||
sort[0] = 'b';
|
sort[0] = 'S';
|
||||||
sort[3] = 's';
|
|
||||||
sort[5] = 'z';
|
|
||||||
}
|
|
||||||
|
|
||||||
/* We need to show filename as it may be truncated in directory listing */
|
/* We need to show filename as it may be truncated in directory listing */
|
||||||
if (!cfg.blkorder)
|
if (!cfg.blkorder)
|
||||||
|
|
Loading…
Reference in a new issue