aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-05-06 23:26:40 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-05-06 23:26:40 +0530
commitdb3a46a19799b033a2d287b4d5433728ebce63d5 (patch)
treef87a05df75edfb92b07b852e4505ab7c7b7f814b
parentfcab64263eb68932fdab8380cfe18ea3f557b615 (diff)
downloadnnn-db3a46a19799b033a2d287b4d5433728ebce63d5.tar.gz
Ignore -S when start dir is specified
-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;
}
}