mirror of
https://github.com/jarun/nnn.git
synced 2025-01-22 08:46:38 +00:00
switch filterfn on ctx changes
this should fix more crashes related to switching between contexts with different types of filters active. particularly when switching from a regex filtered context to a string filtered one.
This commit is contained in:
parent
18dff24acc
commit
a9093c6dd1
|
@ -4385,6 +4385,7 @@ static void setcfg(settings newcfg)
|
|||
/* Synchronize the global function pointers to match the new cfg. */
|
||||
entrycmpfn = cfg.reverse ? &reventrycmp : &entrycmp;
|
||||
namecmpfn = cfg.version ? &xstrverscasecmp : &xstricmp;
|
||||
filterfn = cfg.regex ? &visible_re : &visible_str;
|
||||
}
|
||||
|
||||
static void savecurctx(char *path, char *curname, int nextctx)
|
||||
|
|
Loading…
Reference in a new issue