commit 151312eb3722bb3c50726533aaa97ddfa3578cf0
parent 2435263052661afbfd433ffc20b0519affc23866
Author: Luuk van Baal <luukvbaal@gmail.com>
Date: Thu, 7 Oct 2021 02:57:55 +0200
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