src/nnn.c | 13 +++++++------ diff --git a/src/nnn.c b/src/nnn.c index b9947869d8b1f6cabe5c3ceb886b5f2764b5e15e..ba4eecb3d70366433b66802c4774439163b03e51 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -652,10 +652,17 @@ return &ascbuf[++i]; } +static void clearinfoln(void) +{ + move(xlines - 2, 0); + clrtoeol(); +} + #ifdef KEY_RESIZE /* Clear the old prompt */ static void clearoldprompt(void) { + clearinfoln(); tolastln(); clrtoeol(); } @@ -692,12 +699,6 @@ static void printprompt(const char *str) { clearprompt(); addstr(str); -} - -static void clearinfoln(void) -{ - move(xlines - 2, 0); - addstr(""); } static void printinfoln(const char *str)