patch 7.4.784
Problem: Using both "noinsert" and "noselect" in 'completeopt' does not
work properly.
Solution: Change the ins_complete() calls. (Ozaki Kiichi)
diff --git a/src/edit.c b/src/edit.c
index 086a5b9..ca11fd9 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -2794,16 +2794,11 @@
compl_curr_match = compl_first_match;
if (compl_no_insert)
- {
- if (!compl_no_select)
- ins_complete(K_DOWN);
- }
+ ins_complete(K_DOWN);
else
- {
ins_complete(Ctrl_N);
- if (compl_no_select)
- ins_complete(Ctrl_P);
- }
+ if (compl_no_select)
+ ins_complete(Ctrl_P);
out_flush();
}