mirror of
https://github.com/neovim/neovim.git
synced 2025-09-26 04:58:33 +00:00
vim-patch:7.4.1753
Problem: "noinsert" in 'completeopt' is sometimes ignored.
Solution: Set the variables when the 'completeopt' was set. (Ozaki Kiichi)
c020042083
This commit is contained in:
@@ -2957,8 +2957,11 @@ did_set_string_option (
|
||||
}
|
||||
/* 'completeopt' */
|
||||
else if (varp == &p_cot) {
|
||||
if (check_opt_strings(p_cot, p_cot_values, TRUE) != OK)
|
||||
if (check_opt_strings(p_cot, p_cot_values, true) != OK) {
|
||||
errmsg = e_invarg;
|
||||
} else {
|
||||
completeopt_was_set();
|
||||
}
|
||||
}
|
||||
/* 'pastetoggle': translate key codes like in a mapping */
|
||||
else if (varp == &p_pt) {
|
||||
|
Reference in New Issue
Block a user