From 6016f59d2c88c1280c23aed1f40444e1e762b24e Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Tue, 24 Sep 2024 21:02:36 +0530 Subject: [PATCH] Fix info line visible when filter is not on --- src/nnn.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/nnn.c b/src/nnn.c index 27470c74e..d8be7768f 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -1426,6 +1426,12 @@ static void msg(const char *message) fprintf(stderr, "%s\n", message); } +static void clearinfoln(void) +{ + move(xlines - 2, 0); + clrtoeol(); +} + #ifdef KEY_RESIZE static void handle_key_resize(void) { @@ -1436,9 +1442,7 @@ static void handle_key_resize(void) /* Clear the old prompt */ static void clearoldprompt(void) { - // clear info line - move(xlines - 2, 0); - clrtoeol(); + clearinfoln(); tolastln(); clrtoeol(); @@ -3565,6 +3569,7 @@ static int filterentries(char *path, char *lastname) showfilter(ln); } end: + clearinfoln(); /* Save last working filter in-filter */ if (ln[1])