mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +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) {
|
||||
showoptions(false, opt_flags);
|
||||
did_show = true;
|
||||
goto theend;
|
||||
}
|
||||
|
||||
} else {
|
||||
while (*arg != NUL) { // loop to process all options
|
||||
if (strncmp(arg, "all", 3) == 0 && !ASCII_ISALPHA(arg[3])
|
||||
&& !(opt_flags & OPT_MODELINE)) {
|
||||
@@ -1481,8 +1479,8 @@ int do_set(char *arg, int opt_flags)
|
||||
|
||||
arg = skipwhite(arg);
|
||||
}
|
||||
}
|
||||
|
||||
theend:
|
||||
if (silent_mode && did_show) {
|
||||
// After displaying option values in silent mode.
|
||||
silent_mode = false;
|
||||
|
Reference in New Issue
Block a user