Mercurial > vim
diff src/edit.c @ 3676:f07475816079 v7.3.598
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)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 10 Jul 2012 17:14:56 +0200 |
parents | d258a0c5c38a |
children | 2bb51730ef4b |
line wrap: on
line diff
--- 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 } }