mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Clear info line completely
This commit is contained in:
parent
61e03e0961
commit
1eb2ab2478
13
src/nnn.c
13
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();
|
||||
|
|
Loading…
Reference in a new issue