aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-02-29 06:32:02 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-02-29 06:32:02 +0530
commita1e2ef055eb0853ea5b0189860351b6d40dd118c (patch)
treed2d7aff0d980b0bbd52651047bb445b1815bf8cb /src/nnn.c
parent37987d487e7fa63a69a8699943e4b3fafe15641b (diff)
downloadnnn-a1e2ef055eb0853ea5b0189860351b6d40dd118c.tar.gz
Continue in filter mode
Diffstat (limited to 'src/nnn.c')
-rw-r--r--src/nnn.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 0a7aa70..ab125fe 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -5372,8 +5372,11 @@ nochange:
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 @@ nochange:
#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 @@ nochange:
goto nochange;
case SEL_AUTONEXT:
g_states ^= STATE_AUTONEXT;
+ if (cfg.filtermode)
+ presel = FILTER;
goto nochange;
case SEL_QUITCTX: // fallthrough
case SEL_QUITCD: // fallthrough