mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
refactor(option.c): reduce scope or startarg
This commit is contained in:
@@ -1418,8 +1418,6 @@ int do_set(char *arg, int opt_flags)
|
|||||||
}
|
}
|
||||||
|
|
||||||
while (*arg != NUL) { // loop to process all options
|
while (*arg != NUL) { // loop to process all options
|
||||||
char *startarg = arg; // remember for error message
|
|
||||||
|
|
||||||
if (strncmp(arg, "all", 3) == 0 && !ASCII_ISALPHA(arg[3])
|
if (strncmp(arg, "all", 3) == 0 && !ASCII_ISALPHA(arg[3])
|
||||||
&& !(opt_flags & OPT_MODELINE)) {
|
&& !(opt_flags & OPT_MODELINE)) {
|
||||||
// ":set all" show all options.
|
// ":set all" show all options.
|
||||||
@@ -1438,6 +1436,7 @@ int do_set(char *arg, int opt_flags)
|
|||||||
did_show = true;
|
did_show = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
char *startarg = arg; // remember for error message
|
||||||
char *errmsg = NULL;
|
char *errmsg = NULL;
|
||||||
char errbuf[80];
|
char errbuf[80];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user