Continue in filter mode

This commit is contained in:
Arun Prakash Jana 2020-02-29 06:32:02 +05:30
parent 37987d487e
commit a1e2ef055e
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

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