diff --git a/src/nnn.c b/src/nnn.c index d8be7768f..d79e3cf40 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -3242,9 +3242,6 @@ static int getorderstr(char *sort) { int i = 0; - if (cfg.filtermode) - sort[i++] = 'F'; - if (cfg.showhidden) sort[i++] = 'H'; @@ -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); @@ -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);