mirror of
https://github.com/jarun/nnn.git
synced 2025-01-15 21:36:42 +00:00
Merge pull request #1969 from doremiyeon/us1968_session_restore_fix
fix 's r' session restore #1968
This commit is contained in:
commit
f87104dd40
|
@ -4543,7 +4543,7 @@ static bool load_session(const char *sname, char **path, char **lastdir, char **
|
||||||
*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_sort_flags('\0'); /* Set correct sort options */
|
||||||
xstrsncpy(curssn, sname, NAME_MAX);
|
xstrsncpy(curssn, sname ? sname : "@", NAME_MAX);
|
||||||
status = TRUE;
|
status = TRUE;
|
||||||
|
|
||||||
END:
|
END:
|
||||||
|
|
Loading…
Reference in a new issue