mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
refactor(option.c): remove goto
This commit is contained in:
@@ -1414,9 +1414,7 @@ int do_set(char *arg, int opt_flags)
|
|||||||
if (*arg == NUL) {
|
if (*arg == NUL) {
|
||||||
showoptions(false, opt_flags);
|
showoptions(false, opt_flags);
|
||||||
did_show = true;
|
did_show = true;
|
||||||
goto theend;
|
} else {
|
||||||
}
|
|
||||||
|
|
||||||
while (*arg != NUL) { // loop to process all options
|
while (*arg != NUL) { // loop to process all options
|
||||||
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)) {
|
||||||
@@ -1481,8 +1479,8 @@ int do_set(char *arg, int opt_flags)
|
|||||||
|
|
||||||
arg = skipwhite(arg);
|
arg = skipwhite(arg);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
theend:
|
|
||||||
if (silent_mode && did_show) {
|
if (silent_mode && did_show) {
|
||||||
// After displaying option values in silent mode.
|
// After displaying option values in silent mode.
|
||||||
silent_mode = false;
|
silent_mode = false;
|
||||||
|
Reference in New Issue
Block a user