summaryrefslogtreecommitdiff
path: root/src/edit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c5
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
}
}