Merge pull request #1969 from doremiyeon/us1968_session_restore_fix

fix 's r' session restore #1968
This commit is contained in:
Arun Prakash Jana 2024-12-13 21:10:01 +05:30 committed by GitHub
commit f87104dd40
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: