From 41dc17883a8659c428b208e03f1d55c6b404251a Mon Sep 17 00:00:00 2001 From: lvgx Date: Sat, 30 May 2020 01:21:16 +0200 Subject: [PATCH] Fix detecting end of evironment options (#610) This allow using both NNN_OPTS and options with arguments from argv. --- src/nnn.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nnn.c b/src/nnn.c index de80d46c..85042015 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -7048,6 +7048,8 @@ int main(int argc, char *argv[]) usage(); return EXIT_FAILURE; } + if (env_opts_id == 0) + env_opts_id = -1; } #ifdef DBGMODE