]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix screen not cleared with drag down on narrow terms
authorArun Prakash Jana <engineerarun@gmail.com>
Sun, 5 Apr 2020 01:07:26 +0000 (06:37 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sun, 5 Apr 2020 01:07:26 +0000 (06:37 +0530)
src/nnn.c

index e2aa7ffe2af7948883653a7eec2b26263c7fe3e9..20f42b69436e939fc3fef5d049a372db47297146 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -5016,6 +5016,8 @@ static void redraw(char *path)
 
        /* 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;
        }