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

View file

@ -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)