commit 1020f37320b2fccb740c84f011864c90cafec6dd
parent 2435263052661afbfd433ffc20b0519affc23866
Author: Terminator X <engineerarun@gmail.com>
Date: Thu, 7 Oct 2021 08:59:34 +0530
Merge pull request #1190 from luukvbaal/sessionfix
Save session after browse()
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/nnn.c b/src/nnn.c
@@ -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