aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-02-26 19:32:54 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-02-26 19:42:37 +0530
commitf0f8008014a39e3a849a8b51b709afca90205525 (patch)
treebda8aea562939b2c5d7a0224c0b8a839be01962e
parent7aa72ddd7960aa7962d52e83052b85b770964227 (diff)
downloadnnn-f0f8008014a39e3a849a8b51b709afca90205525.tar.gz
Restore filter on context switch in non nav-as-you-type mode
-rw-r--r--src/nnn.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 3e161db..8abeff5 100644
--- 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);