Browse Source

Do a complete erase

master
Arun Prakash Jana 5 years ago
parent
commit
4b5ecbe8fc
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 4 additions and 8 deletions
  1. +4
    -8
      src/nnn.c

+ 4
- 8
src/nnn.c View File

@@ -4938,15 +4938,14 @@ static void redraw(char *path)


DPRINTF_S(__FUNCTION__); DPRINTF_S(__FUNCTION__);


/* Go to first line */ /* Clear screen */
move(0, 0); erase();


/* 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) {
clrtobot();
printmsg(messages[MSG_FEW_COLUMNS]); printmsg(messages[MSG_FEW_COLUMNS]);
return; return;
} }
@@ -4998,8 +4997,8 @@ static void redraw(char *path)


attroff(A_UNDERLINE); attroff(A_UNDERLINE);


/* Clear everthing till first entry */ /* Go to first entry */
addstr("\n\n"); move(2, 0);


ncols = adjust_cols(ncols); ncols = adjust_cols(ncols);


@@ -5016,9 +5015,6 @@ static void redraw(char *path)
cfg.dircolor = 0; cfg.dircolor = 0;
} }


/* Clear from last entry to end */
clrtobot();

statusbar(path); statusbar(path);
} }




||||||
x
 
000:0
Loading…
Cancel
Save