aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-04-15 22:36:33 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-04-15 22:36:33 +0530
commit135172a1c6935137e97c3298ed8550b3e766c833 (patch)
treef4107cbe338dc7cdc61d7f15f2deef2b0bff9c47 /src/nnn.c
parent124d66dcbd23849ca8be68ab37adf021bde34791 (diff)
downloadnnn-135172a1c6935137e97c3298ed8550b3e766c833.tar.gz
Fix #520
Diffstat (limited to 'src/nnn.c')
-rw-r--r--src/nnn.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 1eb7fe3..56c5e3f 100644
--- 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);
}