patch 8.2.0123: complete_info() does not work when CompleteDone is triggered

Problem:    complete_info() does not work when CompleteDone is triggered.
Solution:   Trigger CompleteDone before clearing the info.
This commit is contained in:
Bram Moolenaar
2020-01-17 18:58:59 +01:00
parent f2a44e5c48
commit 17e04781f2
4 changed files with 20 additions and 4 deletions

View File

@ -1,4 +1,4 @@
*autocmd.txt* For Vim version 8.2. Last change: 2019 Dec 17
*autocmd.txt* For Vim version 8.2. Last change: 2020 Jan 17
VIM REFERENCE MANUAL by Bram Moolenaar
@ -610,6 +610,8 @@ CompleteChanged *CompleteChanged*
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.
The |v:completed_item| variable contains
information about the completed item.