]> Sergey Matveev's repositories - nnn.git/commitdiff
Set max cols required to show file info
authorArun Prakash Jana <engineerarun@gmail.com>
Sun, 24 Feb 2019 19:03:09 +0000 (00:33 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sun, 24 Feb 2019 19:03:09 +0000 (00:33 +0530)
src/nnn.c

index f64804be9ef94379d28fcec6981c185e303990aa..2704befb5190a7261482baffd6d0766253fc0058 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2809,7 +2809,7 @@ static void redraw(char *path)
        attroff(A_UNDERLINE);
 
        /* Fallback to light mode if less than 35 columns */
-       if (ncols < 35 && cfg.showdetail) {
+       if (ncols < 41 && cfg.showdetail) {
                cfg.showdetail ^= 1;
                printptr = &printent;
                mode_changed = TRUE;
@@ -2817,7 +2817,7 @@ static void redraw(char *path)
 
        /* Calculate the number of cols available to print entry name */
        if (cfg.showdetail)
-               ncols -= 30;
+               ncols -= 36;
        else
                ncols -= 5;