aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-04-19 03:11:12 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-04-19 03:11:12 +0530
commit4b5ecbe8fc1d16f11325baf268bf484043e8f531 (patch)
tree6015c7015b5dfca05e63fedc51b4b590381c0c32 /src/nnn.c
parent12df1ab083d9692d97c2bf248000cc5e94a0445d (diff)
downloadnnn-4b5ecbe8fc1d16f11325baf268bf484043e8f531.tar.gz
Do a complete erase
Diffstat (limited to 'src/nnn.c')
-rw-r--r--src/nnn.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 5f7b5ac..80f13a6 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4938,15 +4938,14 @@ static void redraw(char *path)
DPRINTF_S(__FUNCTION__);
- /* Go to first line */
- move(0, 0);
+ /* 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) {
- clrtobot();
printmsg(messages[MSG_FEW_COLUMNS]);
return;
}
@@ -4998,8 +4997,8 @@ static void redraw(char *path)
attroff(A_UNDERLINE);
- /* Clear everthing till first entry */
- addstr("\n\n");
+ /* Go to first entry */
+ move(2, 0);
ncols = adjust_cols(ncols);
@@ -5016,9 +5015,6 @@ static void redraw(char *path)
cfg.dircolor = 0;
}
- /* Clear from last entry to end */
- clrtobot();
-
statusbar(path);
}