src/nnn.c | 13 ++++--------- diff --git a/src/nnn.c b/src/nnn.c index b686310a7d77992a631e539a236574a0d0a78cb9..b32125a5875a5a531473e99f03c9b3a07fa660d7 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -1297,12 +1297,6 @@ { dprintf(STDERR_FILENO, "%s\n", message); } -static void clearinfoln(void) -{ - move(xlines - 2, 0); - clrtoeol(); -} - #ifdef KEY_RESIZE static void handle_key_resize() { @@ -1313,7 +1307,10 @@ /* Clear the old prompt */ static void clearoldprompt(void) { - clearinfoln(); + // clear info line + move(xlines - 2, 0); + clrtoeol(); + tolastln(); clrtoeol(); handle_key_resize(); @@ -3156,7 +3153,6 @@ snprintf(info + i, REGEX_MAX - i - 1, " %s [/], %s [:]", (cfg.regex ? "reg" : "str"), ((fnstrstr == &strcasestr) ? "ic" : "noic")); - clearinfoln(); #ifdef FILEINFO if (ndents && get_output("file", "-b", pdents[cur].name, -1, FALSE, FALSE)) mvaddstr(xlines - 2, 2, g_buf); @@ -3442,7 +3438,6 @@ redraw(path); showfilter(ln); } end: - clearinfoln(); /* Save last working filter in-filter */ if (ln[1])