]> Sergey Matveev's repositories - nnn.git/commitdiff
Compact notation for time/size sort order
authorArun Prakash Jana <engineerarun@gmail.com>
Sun, 14 Jul 2019 20:12:12 +0000 (01:42 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sun, 14 Jul 2019 20:12:12 +0000 (01:42 +0530)
src/nnn.c

index b4dc9ffb540b2328ac7e88408c92734f821c0470..6ae1b82c84a2b8ccb4da374268a05f34e67006df 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -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)