aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/nnn.c b/src/nnn.c
index b994786..ba4eecb 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();