nnn

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

commit 18dff24acc97e70aa3fcb7d989baef18f939ce4d
parent 395068dac8407d8ed39864727ca192e5490a48cf
Author: k-pop connoisseur <doremiyeon@proton.me>
Date:   Sun, 15 Dec 2024 03:46:28 +0100

on session load, restore correct filter function

Diffstat:
Msrc/nnn.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -4542,7 +4542,9 @@ static bool load_session(const char *sname, char **path, char **lastdir, char ** *path = g_ctx[cfg.curctx].c_path; *lastdir = g_ctx[cfg.curctx].c_last; *lastname = g_ctx[cfg.curctx].c_name; - set_sort_flags('\0'); /* Set correct sort options */ + /* Set correct sort and filter options */ + set_sort_flags('\0'); + filterfn = cfg.regex ? &visible_re : &visible_str; xstrsncpy(curssn, sname ? sname : "@", NAME_MAX); status = TRUE;