diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-07-10 17:14:56 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-07-10 17:14:56 +0200 |
commit | cfa3caec0c0d54e593d6c19241da996b4111591b (patch) | |
tree | f1354495162707cdff4a4e9eada517434040b468 /src/edit.c | |
parent | c0885aad5c40ea04f4b6a2462602273e06467516 (diff) | |
download | vim-cfa3caec0c0d54e593d6c19241da996b4111591b.zip |
updated for version 7.3.598
Problem: Cannot act upon end of completion. (Taro Muraoka)
Solution: Add an autocommand event that is triggered when completion has
finished. (Idea by Florian Klein)
Diffstat (limited to 'src/edit.c')
-rw-r--r-- | src/edit.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/edit.c b/src/edit.c index bcae92888..68b896858 100644 --- a/src/edit.c +++ b/src/edit.c @@ -3824,6 +3824,11 @@ ins_compl_prep(c) if (want_cindent && in_cinkeys(KEY_COMPLETE, ' ', inindent(0))) do_c_expr_indent(); #endif +#ifdef FEAT_AUTOCMD + /* Trigger the CompleteDone event to give scripts a chance to act + * upon the completion. */ + apply_autocmds(EVENT_COMPLETEDONE, NULL, NULL, FALSE, curbuf); +#endif } } |