From: Arun Prakash Jana Date: Sun, 12 Jan 2020 19:52:51 +0000 (+0530) Subject: Sort order not changing in nav-as-you-type mode X-Git-Tag: v2.9~31 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=16c88770b66a051a936defcc2999d8bf01a7ef28;p=nnn.git Sort order not changing in nav-as-you-type mode --- diff --git a/src/nnn.c b/src/nnn.c index fed2b73f..f9c995cd 100644 --- 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) {