]> granicus.if.org Git - vim/commitdiff
patch 7.4.784 v7.4.784
authorBram Moolenaar <Bram@vim.org>
Fri, 17 Jul 2015 11:42:23 +0000 (13:42 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 17 Jul 2015 11:42:23 +0000 (13:42 +0200)
Problem:    Using both "noinsert" and "noselect" in 'completeopt' does not
            work properly.
Solution:   Change the ins_complete() calls. (Ozaki Kiichi)

src/edit.c
src/version.c

index 086a5b99eeb6b6b71c2246c6b0198f0f370a3fd9..ca11fd94048a91900bea9616c74b654637748a60 100644 (file)
@@ -2794,16 +2794,11 @@ set_completion(startcol, list)
 
     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();
 }
 
index 5a59adde65a4ce971c2041afda3429aa4f13e5ba..4907d68f5de3b027b5c514bb71b10c968ef12868 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    784,
 /**/
     783,
 /**/