mirror of
https://github.com/jarun/nnn.git
synced 2024-11-18 00:49:15 +00:00
Save session after browse()
This commit is contained in:
parent
2435263052
commit
151312eb37
10
src/nnn.c
10
src/nnn.c
|
@ -7734,11 +7734,6 @@ nochange:
|
||||||
break; // fallthrough
|
break; // fallthrough
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef NOSSN
|
|
||||||
if (session && g_state.prstssn)
|
|
||||||
save_session(session, NULL);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* CD on Quit */
|
/* CD on Quit */
|
||||||
tmp = getenv("NNN_TMPFILE");
|
tmp = getenv("NNN_TMPFILE");
|
||||||
if ((sel == SEL_QUITCD) || tmp) {
|
if ((sel == SEL_QUITCD) || tmp) {
|
||||||
|
@ -8637,6 +8632,11 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
opt = browse(initpath, session, pkey);
|
opt = browse(initpath, session, pkey);
|
||||||
|
|
||||||
|
#ifndef NOSSN
|
||||||
|
if (session && g_state.prstssn)
|
||||||
|
save_session(session, NULL);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef NOMOUSE
|
#ifndef NOMOUSE
|
||||||
mousemask(mask, NULL);
|
mousemask(mask, NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue