Skip to content

Commit 0df5bdb

Browse files
committed
Fix scroll down arrow indicatior not showing with filter enabled
1 parent eacdf5a commit 0df5bdb

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

src/nnn.c

+6-12
Original file line numberDiff line numberDiff line change
@@ -1442,26 +1442,18 @@ static void msg(const char *message)
14421442
fprintf(stderr, "%s\n", message);
14431443
}
14441444

1445-
static void clearinfoln(void)
1446-
{
1447-
move(xlines - 2, 0);
1448-
clrtoeol();
1449-
}
1450-
14511445
#ifdef KEY_RESIZE
14521446
static void handle_key_resize(void)
14531447
{
14541448
endwin();
14551449
refresh();
14561450
}
14571451

1458-
/* Clear the old prompt */
1452+
/* Clear the old prompt from the info line to the botton of the screen */
14591453
static void clearoldprompt(void)
14601454
{
1461-
clearinfoln();
1462-
1463-
tolastln();
1464-
clrtoeol();
1455+
move(xlines - 2, 0);
1456+
clrtobot();
14651457
handle_key_resize();
14661458
}
14671459
#endif
@@ -3578,7 +3570,9 @@ static int filterentries(char *path, char *lastname)
35783570
showfilter(ln);
35793571
}
35803572
end:
3581-
clearinfoln();
3573+
/* Clear the info line after the down arrow */
3574+
move(xlines - 2, 2);
3575+
clrtoeol();
35823576

35833577
/* Save last working filter in-filter */
35843578
if (ln[1])

0 commit comments

Comments
 (0)