projects
/
nnn.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab521c0
)
Sort order not changing in nav-as-you-type mode
author
Arun Prakash Jana <engineerarun@gmail.com>
Sun, 12 Jan 2020 19:52:51 +0000 (
01:22
+0530)
committer
Arun Prakash Jana <engineerarun@gmail.com>
Sun, 12 Jan 2020 19:52:51 +0000 (
01:22
+0530)
src/nnn.c
patch
|
blob
|
history
diff --git
a/src/nnn.c
b/src/nnn.c
index fed2b73f6051824cbabbd9943d9f9dddf7da6c10..f9c995cd3f6a32a771ecb15d123472755ac572ca 100644
(file)
--- 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) {