diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-01-26 22:43:31 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-01-26 22:43:31 +0100 |
commit | 3f169ce17e8b779d105c96138a8b4246f2d270b9 (patch) | |
tree | 2723f598d986390199afb8c86298ea5c6391ebb9 /runtime | |
parent | 318e7a9c03ed4beadd3c6089f5807938e3c1f843 (diff) | |
download | vim-git-3f169ce17e8b779d105c96138a8b4246f2d270b9.tar.gz |
patch 8.2.0158: triggering CompleteDone earlier is not backwards compatiblev8.2.0158
Problem: Triggering CompleteDone earlier is not backwards compatible.
(Daniel Hahler)
Solution: Add CompleteDonePre instead.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/autocmd.txt | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt index 89ba5750d..0dc2fffea 100644 --- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -374,7 +374,10 @@ Name triggered by ~ |MenuPopup| just before showing the popup menu |CompleteChanged| after Insert mode completion menu changed -|CompleteDone| after Insert mode completion is done +|CompleteDonePre| after Insert mode completion is done, before clearing + info +|CompleteDone| after Insert mode completion is done, after clearing + info |User| to be used in combination with ":doautocmd" @@ -589,8 +592,8 @@ ColorSchemePre Before loading a color scheme. |:colorscheme| CompleteChanged *CompleteChanged* After each time the Insert mode completion menu changed. Not fired on popup menu hide, - use |CompleteDone| for that. Never triggered - recursively. + use |CompleteDonePre| or |CompleteDone| for + that. Never triggered recursively. Sets these |v:event| keys: completed_item See |complete-items|. @@ -606,12 +609,22 @@ CompleteChanged *CompleteChanged* The size and position of the popup are also available by calling |pum_getpos()|. + *CompleteDonePre* +CompleteDonePre After Insert mode completion is done. Either + when something was completed or abandoning + completion. |ins-completion| + |complete_info()| can be used, the info is + cleared after triggering CompleteDonePre. + The |v:completed_item| variable contains + information about the completed item. + *CompleteDone* CompleteDone After Insert mode completion is done. Either when something was completed or abandoning completion. |ins-completion| - |complete_info()| can be used, the info is - cleared after triggering CompleteDone. + |complete_info()| cannot be used, the info is + cleared before triggering CompleteDone. Use + CompleteDonePre if you need it. The |v:completed_item| variable contains information about the completed item. |