Compact notation for time/size sort order

This commit is contained in:
Arun Prakash Jana 2019-07-15 01:42:12 +05:30
parent 6fb4338ffa
commit fabf9fd47b
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 4 additions and 7 deletions

View File

@ -3178,15 +3178,12 @@ static void redraw(char *path)
if (cfg.showdetail) {
if (ndents) {
char sort[] = "\0y time ";
char sort[] = "\0 ";
if (cfg.mtimeorder)
sort[0] = 'b';
else if (cfg.sizeorder) {
sort[0] = 'b';
sort[3] = 's';
sort[5] = 'z';
}
sort[0] = 'T';
else if (cfg.sizeorder)
sort[0] = 'S';
/* We need to show filename as it may be truncated in directory listing */
if (!cfg.blkorder)