neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 25310af06085c243c2b72a6a0f21cc45ce86a283
parent 334f5382677b3bcf91e74bb8502d38c7d2bd4281
Author: Lewis Russell <lewis6991@gmail.com>
Date:   Wed, 25 Jan 2023 17:03:15 +0000

refactor(option.c): use skiptowhite_esc

Diffstat:
Msrc/nvim/option.c | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git 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;