Merge pull request #1190 from luukvbaal/sessionfix

Save session after browse()
This commit is contained in:
Terminator X 2021-10-07 08:59:34 +05:30 committed by GitHub
commit 1020f37320
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -7734,11 +7734,6 @@ nochange:
break; // fallthrough
}
#ifndef NOSSN
if (session && g_state.prstssn)
save_session(session, NULL);
#endif
/* CD on Quit */
tmp = getenv("NNN_TMPFILE");
if ((sel == SEL_QUITCD) || tmp) {
@ -8637,6 +8632,11 @@ int main(int argc, char *argv[])
opt = browse(initpath, session, pkey);
#ifndef NOSSN
if (session && g_state.prstssn)
save_session(session, NULL);
#endif
#ifndef NOMOUSE
mousemask(mask, NULL);
#endif