This commit is contained in:
Arun Prakash Jana 2020-04-15 22:36:33 +05:30
parent 124d66dcbd
commit 135172a1c6
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

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