From: Arun Prakash Jana Date: Sat, 23 May 2020 20:21:59 +0000 (+0530) Subject: Fix filterfn not in sync with cfg.regex X-Git-Tag: v3.2~5 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=c1f88d00ffe268b63443c2c38bf214f1344e9b43;p=nnn.git Fix filterfn not in sync with cfg.regex --- diff --git a/src/nnn.c b/src/nnn.c index b45eeb23..942b7db8 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -2638,7 +2638,7 @@ static int filterentries(char *path, char *lastname) ln[0] = (ln[0] == FILTER) ? RFILTER : FILTER; wln[0] = (uchar)ln[0]; cfg.regex ^= 1; - filterfn = (filterfn == &visible_str) ? &visible_re : &visible_str; + filterfn = cfg.regex ? &visible_re : &visible_str; showfilter(ln); continue; }