diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-02-13 16:30:21 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-02-13 16:30:21 +0100 |
commit | a3914327f73b3d994af6ecb81dace22fab7d8dc7 (patch) | |
tree | 154ea662cf93393d800e2da5cc320a01bc851b3f /src | |
parent | 00154508de442a1ffa19ab217484f4a50e7536f0 (diff) | |
download | vim-git-a3914327f73b3d994af6ecb81dace22fab7d8dc7.tar.gz |
updated for version 7.3.813v7.3.813
Problem: The CompleteDone event is not triggered when there are no pattern
matches. (Jianjun Mao)
Solution: Trigger the event. (Christian Brabandt)
Diffstat (limited to 'src')
-rw-r--r-- | src/edit.c | 6 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/edit.c b/src/edit.c index 50c1fca6b..3a0466595 100644 --- a/src/edit.c +++ b/src/edit.c @@ -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() */ diff --git a/src/version.c b/src/version.c index 4429b0f0f..3480503ef 100644 --- a/src/version.c +++ b/src/version.c @@ -726,6 +726,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 813, +/**/ 812, /**/ 811, |