Meco Man пре 1 година
родитељ
комит
d6d52c52a9
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      editors/vi.c

+ 1 - 1
editors/vi.c

@@ -516,7 +516,7 @@ static int vi_main(int argc, char **argv)
             initial_cmds[0] = vi_strndup(p, MAX_INPUT_LEN);
     }
 #endif
-    optparse_init(&options, argv);
+    optparse_init(&options, argc, argv);
     while ((c = optparse(&options,
             "RHh" IF_FEATURE_VI_COLON("c:"))) != -1) {
         switch (c) {