nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit c1f88d00ffe268b63443c2c38bf214f1344e9b43
parent 3527f68554aea2b95c7ba861e5b4ecfe929f78b3
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Sun, 24 May 2020 01:51:59 +0530

Fix filterfn not in sync with cfg.regex

Diffstat:
Msrc/nnn.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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; }