From: Arun Prakash Jana Date: Wed, 26 Feb 2020 14:02:54 +0000 (+0530) Subject: Restore filter on context switch in non nav-as-you-type mode X-Git-Tag: v3.1~141 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=f0f8008014a39e3a849a8b51b709afca90205525;p=nnn.git Restore filter on context switch in non nav-as-you-type mode --- diff --git a/src/nnn.c b/src/nnn.c index 3e161db8..8abeff52 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);