mirror of
https://github.com/jarun/nnn.git
synced 2025-01-15 21:36:42 +00:00
on session load, restore correct filter function
This commit is contained in:
parent
395068dac8
commit
18dff24acc
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue