|
|
@@ -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) {
|