Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
3675:8754a9491fc2 | 3676:f07475816079 |
---|---|
3821 /* | 3821 /* |
3822 * Indent now if a key was typed that is in 'cinkeys'. | 3822 * Indent now if a key was typed that is in 'cinkeys'. |
3823 */ | 3823 */ |
3824 if (want_cindent && in_cinkeys(KEY_COMPLETE, ' ', inindent(0))) | 3824 if (want_cindent && in_cinkeys(KEY_COMPLETE, ' ', inindent(0))) |
3825 do_c_expr_indent(); | 3825 do_c_expr_indent(); |
3826 #endif | |
3827 #ifdef FEAT_AUTOCMD | |
3828 /* Trigger the CompleteDone event to give scripts a chance to act | |
3829 * upon the completion. */ | |
3830 apply_autocmds(EVENT_COMPLETEDONE, NULL, NULL, FALSE, curbuf); | |
3826 #endif | 3831 #endif |
3827 } | 3832 } |
3828 } | 3833 } |
3829 | 3834 |
3830 /* reset continue_* if we left expansion-mode, if we stay they'll be | 3835 /* reset continue_* if we left expansion-mode, if we stay they'll be |