mirror of
https://github.com/jarun/nnn.git
synced 2025-01-15 21:36:42 +00:00
fix 's r' session restore #1968
This commit is contained in:
parent
5e5a17f954
commit
395068dac8
|
@ -4543,7 +4543,7 @@ static bool load_session(const char *sname, char **path, char **lastdir, char **
|
|||
*lastdir = g_ctx[cfg.curctx].c_last;
|
||||
*lastname = g_ctx[cfg.curctx].c_name;
|
||||
set_sort_flags('\0'); /* Set correct sort options */
|
||||
xstrsncpy(curssn, sname, NAME_MAX);
|
||||
xstrsncpy(curssn, sname ? sname : "@", NAME_MAX);
|
||||
status = TRUE;
|
||||
|
||||
END:
|
||||
|
|
Loading…
Reference in a new issue