on session load, restore correct filter function

This commit is contained in:
k-pop connoisseur 2024-12-15 03:46:28 +01:00 committed by NRK
parent 395068dac8
commit 18dff24acc

View file

@ -4542,7 +4542,9 @@ static bool load_session(const char *sname, char **path, char **lastdir, char **
*path = g_ctx[cfg.curctx].c_path; *path = g_ctx[cfg.curctx].c_path;
*lastdir = g_ctx[cfg.curctx].c_last; *lastdir = g_ctx[cfg.curctx].c_last;
*lastname = g_ctx[cfg.curctx].c_name; *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); xstrsncpy(curssn, sname ? sname : "@", NAME_MAX);
status = TRUE; status = TRUE;