aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-05-24 01:51:59 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-05-24 01:51:59 +0530
commitc1f88d00ffe268b63443c2c38bf214f1344e9b43 (patch)
tree5b7bfb59edfee59894f26753b644e432549b7520 /src
parent3527f68554aea2b95c7ba861e5b4ecfe929f78b3 (diff)
downloadnnn-c1f88d00ffe268b63443c2c38bf214f1344e9b43.tar.gz
Fix filterfn not in sync with cfg.regex
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index b45eeb2..942b7db 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;
}