src/nnn.c | 12 ++++++++++-- diff --git a/src/nnn.c b/src/nnn.c index 0a7aa7082b41e7c993b9463471ff6a043dba09eb..ab125fe4eca60d7429465ab4400623bed4de0078 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -5372,8 +5372,11 @@ presel = MSGWAIT; goto nochange; } - if (strcmp(path, dir) == 0) + if (strcmp(path, dir) == 0) { + if (cfg.filtermode) + presel = FILTER; goto nochange; + } /* SEL_CDLAST: dir pointing to lastdir */ xstrlcpy(newpath, dir, PATH_MAX); @@ -6053,8 +6056,11 @@ } #endif if (tmp && *tmp) // NOLINT prompt_run(tmp, (ndents ? dents[cur].name : ""), path); - else + else { + if (cfg.filtermode) + presel = FILTER; goto nochange; + } } /* Continue in navigate-as-you-type mode, if enabled */ @@ -6100,6 +6106,8 @@ statusbar(path); goto nochange; case SEL_AUTONEXT: g_states ^= STATE_AUTONEXT; + if (cfg.filtermode) + presel = FILTER; goto nochange; case SEL_QUITCTX: // fallthrough case SEL_QUITCD: // fallthrough