diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2020-03-16 21:39:44 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2020-03-16 21:39:44 +0530 |
commit | fc8c5b46b382998e4a25cf4d8bfd5fce4f0831c0 (patch) | |
tree | 7c98c4a62ef5840c1b8eb1ef9c6a1d4f462d1193 /src | |
parent | 1cf50e738fff36c0bf7fea244cdd132ba13ff719 (diff) | |
download | nnn-fc8c5b46b382998e4a25cf4d8bfd5fce4f0831c0.tar.gz |
Skip erasing the complete screen
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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); } |