Save session after browse()

This commit is contained in:
Luuk van Baal 2021-10-07 02:57:55 +02:00
parent 2435263052
commit 151312eb37

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