src/nnn.c | 12 ++++++++---- diff --git a/src/nnn.c b/src/nnn.c index 2810e0cbd78caa13fbc4ded2592fa9acb2fba264..da9ddddf53675a6dc0786d83ff5b06e73b7da1b3 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -4871,8 +4871,9 @@ if (ndents && (last_curscroll == curscroll)) return draw_line(path, ncols); } - /* Clear screen */ - erase(); + /* Clear first line */ + move(0, 0); + clrtoeol(); /* Enforce scroll/cursor invariants */ move_cursor(cur, 1); @@ -4934,10 +4935,10 @@ addnstr(base, ncols - (MIN_DISPLAY_COLS + i)); } } + attroff(A_UNDERLINE); + /* Go to first entry */ move(2, 0); - - attroff(A_UNDERLINE); ncols = adjust_cols(ncols); @@ -4953,6 +4954,9 @@ if (cfg.dircolor) { attroff(COLOR_PAIR(cfg.curctx + 1) | A_BOLD); cfg.dircolor = 0; } + + /* Clear from last entry to end */ + clrtobot(); statusbar(path); }