Skip to content

Commit

Permalink
Fix info line visible when filter is not on
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Sep 24, 2024
1 parent 11188f6 commit 6016f59
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/nnn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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();
Expand Down Expand Up @@ -3565,6 +3569,7 @@ static int filterentries(char *path, char *lastname)
showfilter(ln);
}
end:
clearinfoln();

/* Save last working filter in-filter */
if (ln[1])
Expand Down

0 comments on commit 6016f59

Please sign in to comment.