From: Arun Prakash Jana Date: Fri, 13 Mar 2020 21:30:41 +0000 (+0530) Subject: Start watching dir if filter mode is disabled X-Git-Tag: v3.1~86 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=2d952795a848a8430e5ffcc5613fcedcd0d860b3;p=nnn.git Start watching dir if filter mode is disabled --- diff --git a/src/nnn.c b/src/nnn.c index cdb85907..f5ee9330 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -5534,7 +5534,11 @@ nochange: /* Start watching the directory */ dir_changed = TRUE; - break; + + /* Save current */ + if (ndents) + copycurname(); + goto begin; case SEL_HIDDEN: cfg.showhidden ^= 1; if (ndents) @@ -5568,7 +5572,6 @@ nochange: 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: