aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/nnn.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 466f625..0a5dd82 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -7041,6 +7041,9 @@ int main(int argc, char *argv[])
spawn(opener, arg, NULL, NULL, cfg.cliopener ? F_CLI : F_NOTRACE | F_NOWAIT);
return _SUCCESS;
}
+
+ if (session)
+ session = NULL;
}
}