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:
Shougo Matsushita
2016-04-21 06:00:55 +09:00
parent cef624ee9e
commit e57238a644
3 changed files with 21 additions and 12 deletions

View File

@@ -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) {