From: lvgx Date: Fri, 29 May 2020 23:21:16 +0000 (+0200) Subject: Fix detecting end of evironment options (#610) X-Git-Tag: v3.3~100 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=41dc17883a8659c428b208e03f1d55c6b404251a;p=nnn.git Fix detecting end of evironment options (#610) This allow using both NNN_OPTS and options with arguments from argv. --- 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