mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
refactor(option.c): reduce scope or errbuf
This commit is contained in:
parent
3ae3e47d54
commit
b93bec68bc
@ -1417,8 +1417,6 @@ int do_set(char *arg, int opt_flags)
|
||||
goto theend;
|
||||
}
|
||||
|
||||
char errbuf[80];
|
||||
|
||||
while (*arg != NUL) { // loop to process all options
|
||||
char *startarg = arg; // remember for error message
|
||||
|
||||
@ -1441,6 +1439,8 @@ int do_set(char *arg, int opt_flags)
|
||||
}
|
||||
} else {
|
||||
char *errmsg = NULL;
|
||||
char errbuf[80];
|
||||
|
||||
do_set_option(opt_flags, &arg, &did_show, errbuf, sizeof(errbuf), &errmsg);
|
||||
|
||||
// Advance to next argument.
|
||||
|
Loading…
Reference in New Issue
Block a user