diff options
| author | 2020-01-12 19:40:33 +0530 | |
|---|---|---|
| committer | 2020-01-12 19:40:33 +0530 | |
| commit | 1eb2ab24788e320ac3062457fdc1cb726d8ca7b8 (patch) | |
| tree | a5cc6ab3217400afb54328e301c8997dbe2bd9bb /src | |
| parent | 61e03e09610e176137300fd4a30287c03b546ea6 (diff) | |
| download | nnn-1eb2ab24788e320ac3062457fdc1cb726d8ca7b8.tar.gz | |
Clear info line completely
Diffstat (limited to 'src')
| -rw-r--r-- | src/nnn.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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(); |