]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.813 v7.3.813
authorBram Moolenaar <Bram@vim.org>
Wed, 13 Feb 2013 15:30:21 +0000 (16:30 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 13 Feb 2013 15:30:21 +0000 (16:30 +0100)
Problem:    The CompleteDone event is not triggered when there are no pattern
            matches. (Jianjun Mao)
Solution:   Trigger the event. (Christian Brabandt)

src/edit.c
src/version.c

index 50c1fca6bdef6afd5d0d55207c5506c8c3c040e7..3a0466595a9f520c08a3dd3f468ee20dbd679727 100644 (file)
@@ -3846,6 +3846,12 @@ ins_compl_prep(c)
 #endif
        }
     }
+#ifdef FEAT_AUTOCMD
+    else if (ctrl_x_mode == CTRL_X_LOCAL_MSG)
+       /* Trigger the CompleteDone event to give scripts a chance to act
+        * upon the (possibly failed) completion. */
+       apply_autocmds(EVENT_COMPLETEDONE, NULL, NULL, FALSE, curbuf);
+#endif
 
     /* reset continue_* if we left expansion-mode, if we stay they'll be
      * (re)set properly in ins_complete() */
index 4429b0f0f262a98159d20022964cc6b02430e7c4..3480503eff8d45505863ac463ecff592b7fa7c1d 100644 (file)
@@ -725,6 +725,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    813,
 /**/
     812,
 /**/