aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar lvgx <l@vgx.fr>2020-05-30 01:21:16 +0200
committerGravatar GitHub <noreply@github.com>2020-05-30 04:51:16 +0530
commit41dc17883a8659c428b208e03f1d55c6b404251a (patch)
treeb84e80b23a5ada6b3f8cd936846cb003edf5037e
parent2232772db4f00eb936ee66e57d35dd8bc5344d86 (diff)
downloadnnn-41dc17883a8659c428b208e03f1d55c6b404251a.tar.gz
Fix detecting end of evironment options (#610)
This allow using both NNN_OPTS and options with arguments from argv.
-rw-r--r--src/nnn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nnn.c b/src/nnn.c
index de80d46..8504201 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