mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Skip erasing the complete screen
This commit is contained in:
parent
1cf50e738f
commit
fc8c5b46b3
12
src/nnn.c
12
src/nnn.c
|
@ -4871,8 +4871,9 @@ static void redraw(char *path)
|
|||
return draw_line(path, ncols);
|
||||
}
|
||||
|
||||
/* Clear screen */
|
||||
erase();
|
||||
/* Clear first line */
|
||||
move(0, 0);
|
||||
clrtoeol();
|
||||
|
||||
/* Enforce scroll/cursor invariants */
|
||||
move_cursor(cur, 1);
|
||||
|
@ -4934,11 +4935,11 @@ static void redraw(char *path)
|
|||
}
|
||||
}
|
||||
|
||||
attroff(A_UNDERLINE);
|
||||
|
||||
/* Go to first entry */
|
||||
move(2, 0);
|
||||
|
||||
attroff(A_UNDERLINE);
|
||||
|
||||
ncols = adjust_cols(ncols);
|
||||
|
||||
attron(COLOR_PAIR(cfg.curctx + 1) | A_BOLD);
|
||||
|
@ -4954,6 +4955,9 @@ static void redraw(char *path)
|
|||
cfg.dircolor = 0;
|
||||
}
|
||||
|
||||
/* Clear from last entry to end */
|
||||
clrtobot();
|
||||
|
||||
statusbar(path);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue