aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-01-13 01:22:51 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-01-13 01:22:51 +0530
commit16c88770b66a051a936defcc2999d8bf01a7ef28 (patch)
tree35ba71b734f0ef1dc5f7455fad14baea67067459 /src
parentab521c02a4550b5d676f4e0c26a880a92f8a6b47 (diff)
downloadnnn-16c88770b66a051a936defcc2999d8bf01a7ef28.tar.gz
Sort order not changing in nav-as-you-type mode
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/nnn.c b/src/nnn.c
index fed2b73..f9c995c 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -5037,15 +5037,19 @@ nochange:
break;
}
+ if (cfg.filtermode)
+ presel = FILTER;
+
/* Save current */
if (ndents)
copycurname();
- if (cfg.filtermode || g_ctx[cfg.curctx].c_fltr[1]) {
- presel = FILTER;
- break;
- }
- goto begin;
+ /* If there's no filter, reload the directory */
+ if (!g_ctx[cfg.curctx].c_fltr[1])
+ goto begin;
+
+ presel = FILTER; /* If there's a filter, apply it */
+ break;
case SEL_STATS: // fallthrough
case SEL_CHMODX:
if (ndents) {