projects
/
nnn.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7aa72dd
)
Restore filter on context switch in non nav-as-you-type mode
author
Arun Prakash Jana <engineerarun@gmail.com>
Wed, 26 Feb 2020 14:02:54 +0000 (19:32 +0530)
committer
Arun Prakash Jana <engineerarun@gmail.com>
Wed, 26 Feb 2020 14:12:37 +0000 (19:42 +0530)
src/nnn.c
patch
|
blob
|
history
diff --git
a/src/nnn.c
b/src/nnn.c
index 3e161db89b630815f307896dbed0bfb876ad607d..8abeff52c8a80396005d9726e762ca9cae73ed39 100644
(file)
--- a/
src/nnn.c
+++ b/
src/nnn.c
@@
-5381,8
+5381,13
@@
nochange:
path = g_ctx[r].c_path;
lastdir = g_ctx[r].c_last;
lastname = g_ctx[r].c_name;
+ tmp = g_ctx[r].c_fltr;
+
+ if (cfg.filtermode || ((tmp[0] == FILTER || tmp[0] == RFILTER) && tmp[1]))
+ presel = FILTER;
+ else
+ dir_changed = TRUE;
- setdirwatch();
goto begin;
case SEL_PIN:
free(mark);