refactor(option.c): use skiptowhite_esc

This commit is contained in:
Lewis Russell 2023-01-25 17:03:15 +00:00
parent 334f538267
commit 25310af060

View File

@ -1444,11 +1444,7 @@ int do_set(char *arg, int opt_flags)
// - skip blanks
// - skip one "=val" argument (for hidden options ":set gfn =xx")
for (int i = 0; i < 2; i++) {
while (*arg != NUL && !ascii_iswhite(*arg)) {
if (*arg++ == '\\' && *arg != NUL) {
arg++;
}
}
arg = skiptowhite_esc(arg);
arg = skipwhite(arg);
if (*arg != '=') {
break;