aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2016-04-21 06:00:55 +0900
committerShougo Matsushita <Shougo.Matsu@gmail.com>2016-04-22 07:19:25 +0900
commite57238a644cf24f3130caf7d557a081bbd89df4a (patch)
tree9f09cef5cbbc7f4b7cbec762bc7b99b589db35d9 /src/nvim/option.c
parentcef624ee9e14bf15598219d96f65a6e4932eb935 (diff)
downloadrneovim-e57238a644cf24f3130caf7d557a081bbd89df4a.tar.gz
rneovim-e57238a644cf24f3130caf7d557a081bbd89df4a.tar.bz2
rneovim-e57238a644cf24f3130caf7d557a081bbd89df4a.zip
vim-patch:7.4.1753
Problem: "noinsert" in 'completeopt' is sometimes ignored. Solution: Set the variables when the 'completeopt' was set. (Ozaki Kiichi) https://github.com/vim/vim/commit/c020042083b9c0a4e932b562c3bef97c76328e18
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index f9d1cdbaec..816900d2aa 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -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) {