Skip to content

Commit

Permalink
Show F for filter mode when not active
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Sep 24, 2024
1 parent 6016f59 commit cab9fd5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/nnn.c
Original file line number Diff line number Diff line change
Expand Up @@ -3242,9 +3242,6 @@ static int getorderstr(char *sort)
{
int i = 0;

if (cfg.filtermode)
sort[i++] = 'F';

if (cfg.showhidden)
sort[i++] = 'H';

Expand All @@ -3270,7 +3267,7 @@ static int getorderstr(char *sort)
static void showfilterinfo(void)
{
int i = 0;
char info[REGEX_MAX] = "\0\0\0\0\0\0";
char info[REGEX_MAX] = "\0\0\0\0\0";

i = getorderstr(info);

Expand Down Expand Up @@ -6503,7 +6500,10 @@ static void statusbar(char *path)
(cfg.apparentsz ? 'a' : 'd'), buf, coolsize(get_fs_info(path, VFS_AVAIL)),
num_files, (ullong_t)pent->blocks << blk_shift, ptr);
} else { /* light or detail mode */
char sort[] = "\0\0\0\0\0\0";
char sort[] = "\0\0\0\0\0";

if (cfg.filtermode)
addstr("F ");

if (getorderstr(sort))
addstr(sort);
Expand Down

0 comments on commit cab9fd5

Please sign in to comment.