mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00
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.
048d9d2521
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user