nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit ba8d077c5c201bac98d8652ba5fc5cae9d00a700
parent eacdf5ad74651c8cfa80521898f64cf0b7b48960
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Sat,  3 May 2025 22:32:51 +0530

Fix scroll down arrow indicator not showing when down arrow is pressed with filter

Diffstat:
Msrc/nnn.c | 18++++++------------
1 file changed, 6 insertions(+), 12 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -1442,12 +1442,6 @@ 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) { @@ -1455,13 +1449,11 @@ static void handle_key_resize(void) refresh(); } -/* Clear the old prompt */ +/* Clear the old prompt from the info line to the botton of the screen */ static void clearoldprompt(void) { - clearinfoln(); - - tolastln(); - clrtoeol(); + move(xlines - 2, 0); + clrtobot(); handle_key_resize(); } #endif @@ -3578,7 +3570,9 @@ static int filterentries(char *path, char *lastname) showfilter(ln); } end: - clearinfoln(); + /* Clear the info line after the down arrow */ + move(xlines - 2, 2); + clrtoeol(); /* Save last working filter in-filter */ if (ln[1])