]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix detecting end of evironment options (#610)
authorlvgx <l@vgx.fr>
Fri, 29 May 2020 23:21:16 +0000 (01:21 +0200)
committerGitHub <noreply@github.com>
Fri, 29 May 2020 23:21:16 +0000 (04:51 +0530)
This allow using both NNN_OPTS and options with arguments from argv.

src/nnn.c

index de80d46c9e131a26e3f466b14d7b9ebf17a0caac..85042015ac68078214de1eacbe53f23e58766915 100644 (file)
--- 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