]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix #520
authorArun Prakash Jana <engineerarun@gmail.com>
Wed, 15 Apr 2020 17:06:33 +0000 (22:36 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Wed, 15 Apr 2020 17:06:33 +0000 (22:36 +0530)
src/nnn.c

index 1eb7fe30c4b57437b9c2d8e2db6f985193996b8c..56c5e3f2759af3976457135b5ae35c94e4220b22 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4928,17 +4928,14 @@ static void redraw(char *path)
                        return draw_line(path, ncols);
        }
 
-       /* Clear first line */
-       move(0, 0);
-       clrtoeol();
+       /* Clear screen */
+       erase();
 
        /* Enforce scroll/cursor invariants */
        move_cursor(cur, 1);
 
        /* Fail redraw if < than 10 columns, context info prints 10 chars */
        if (ncols < MIN_DISPLAY_COLS) {
-               /* Clear from last entry to end */
-               clrtobot();
                printmsg(messages[MSG_FEW_COLUMNS]);
                return;
        }
@@ -5008,9 +5005,6 @@ static void redraw(char *path)
                cfg.dircolor = 0;
        }
 
-       /* Clear from last entry to end */
-       clrtobot();
-
        statusbar(path);
 }