From: Arun Prakash Jana Date: Sun, 12 Jan 2020 14:10:33 +0000 (+0530) Subject: Clear info line completely X-Git-Tag: v2.9~35 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=1eb2ab24788e320ac3062457fdc1cb726d8ca7b8;p=nnn.git Clear info line completely --- diff --git a/src/nnn.c b/src/nnn.c index b9947869..ba4eecb3 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -652,10 +652,17 @@ static char *xitoa(uint val) 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(); } @@ -694,12 +701,6 @@ static void printprompt(const char *str) addstr(str); } -static void clearinfoln(void) -{ - move(xlines - 2, 0); - addstr(""); -} - static void printinfoln(const char *str) { clearinfoln();