]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.289 v7.3.289
authorBram Moolenaar <Bram@vim.org>
Sun, 28 Aug 2011 14:02:28 +0000 (16:02 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 28 Aug 2011 14:02:28 +0000 (16:02 +0200)
Problem:    Complete function isn't called when the leader changed.
Solution:   Call ins_compl_restart() when the leader changed.  (Taro Muraoka)

src/edit.c
src/version.c

index 711bfccc9f092386f14837951e560b4551e7e30b..c9cfca65625801450f1266780bc5906e064bd720 100644 (file)
@@ -3367,6 +3367,15 @@ ins_compl_new_leader()
     ins_bytes(compl_leader + ins_compl_len());
     compl_used_match = FALSE;
 
+#ifdef FEAT_COMPL_FUNC
+    /*
+     * To call eval 'completefunc' when leader is changed, restart completion
+     * every time.
+     */
+    if (ctrl_x_mode == CTRL_X_FUNCTION || ctrl_x_mode == CTRL_X_OMNI)
+        ins_compl_restart();
+#endif
+
     if (compl_started)
        ins_compl_set_original_text(compl_leader);
     else
index f3a32154e47616c0c102e269ee754c8d7b5109e8..925ff2477631381886315c8bc1de08219d5f4eff 100644 (file)
@@ -709,6 +709,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    289,
 /**/
     288,
 /**/