]> Sergey Matveev's repositories - nnn.git/commitdiff
Clear info line completely
authorArun Prakash Jana <engineerarun@gmail.com>
Sun, 12 Jan 2020 14:10:33 +0000 (19:40 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sun, 12 Jan 2020 14:10:33 +0000 (19:40 +0530)
src/nnn.c

index b9947869d8b1f6cabe5c3ceb886b5f2764b5e15e..ba4eecb3d70366433b66802c4774439163b03e51 100644 (file)
--- 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();