diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-05-07 08:00:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-07 08:00:08 +0800 |
commit | fa1baa9a47cdb3eed17d48b6011a164d4009d2ee (patch) | |
tree | 81a4bf4ff96afbe6b04de4c8a2463e9e25565c7f /src/nvim/option.c | |
parent | 9e34aa76c132b5637ed2f2dafa4487f4c850bf35 (diff) | |
download | rneovim-fa1baa9a47cdb3eed17d48b6011a164d4009d2ee.tar.gz rneovim-fa1baa9a47cdb3eed17d48b6011a164d4009d2ee.tar.bz2 rneovim-fa1baa9a47cdb3eed17d48b6011a164d4009d2ee.zip |
vim-patch:9.0.1520: completion for option name includes all bool options (#23518)
Problem: Completion for option name includes all bool options.
Solution: Do not recognize the "noinv" prefix. Prefix "no" or "inv" when
appropriate.
https://github.com/vim/vim/commit/048d9d25214049dfde04c468c14bd1708fb692b8
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index a977fc4f86..fc1fc87b62 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -5133,10 +5133,11 @@ void set_context_in_set_cmd(expand_T *xp, char *arg, int opt_flags) } if (strncmp(p, "no", 2) == 0) { xp->xp_context = EXPAND_BOOL_SETTINGS; + xp->xp_prefix = XP_PREFIX_NO; p += 2; - } - if (strncmp(p, "inv", 3) == 0) { + } else if (strncmp(p, "inv", 3) == 0) { xp->xp_context = EXPAND_BOOL_SETTINGS; + xp->xp_prefix = XP_PREFIX_INV; p += 3; } xp->xp_pattern = p; |