diff options
author | Lewis Russell <lewis6991@gmail.com> | 2023-01-25 17:03:15 +0000 |
---|---|---|
committer | Lewis Russell <lewis6991@gmail.com> | 2023-01-26 10:02:00 +0000 |
commit | 25310af06085c243c2b72a6a0f21cc45ce86a283 (patch) | |
tree | e6a69b97df8833a8f1ccda59e7b8e384a207a394 /src | |
parent | 334f5382677b3bcf91e74bb8502d38c7d2bd4281 (diff) | |
download | rneovim-25310af06085c243c2b72a6a0f21cc45ce86a283.tar.gz rneovim-25310af06085c243c2b72a6a0f21cc45ce86a283.tar.bz2 rneovim-25310af06085c243c2b72a6a0f21cc45ce86a283.zip |
refactor(option.c): use skiptowhite_esc
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/option.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index ac889f2451..a4e48f9c02 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -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; |