src/nnn.c | 12 +++++------- diff --git a/src/nnn.c b/src/nnn.c index 55557d6f2f11270fc002b80b854c676a328e86b8..131040c8d42ae71bbb09e7b43eead5d1fcef1e4d 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -6171,7 +6171,7 @@ /* 2 columns for preceding space and indicator */ return (n - 2); } -static void draw_line(char *path, int ncols) +static void draw_line(int ncols) { bool dir = FALSE; @@ -6203,8 +6203,6 @@ if (dir) attroff(COLOR_PAIR(cfg.curctx + 1) | A_BOLD); markhovered(); - - statusbar(path); } static void redraw(char *path) @@ -6220,7 +6218,7 @@ if (g_state.move) { g_state.move = 0; if (ndents && (last_curscroll == curscroll)) - return draw_line(path, ncols); + return draw_line(ncols); } DPRINTF_S(__func__); @@ -6343,8 +6341,6 @@ #endif } markhovered(); - - statusbar(path); } static bool cdprep(char *lastdir, char *lastname, char *path, char *newpath) @@ -6503,8 +6499,10 @@ #endif while (1) { /* Do not do a double redraw in filterentries */ - if ((presel != FILTER) || !filterset()) + if ((presel != FILTER) || !filterset()) { redraw(path); + statusbar(path); + } nochange: /* Exit if parent has exited */