Mercurial > vim
diff runtime/doc/autocmd.txt @ 19127:0ee48dc3f8bc v8.2.0123
patch 8.2.0123: complete_info() does not work when CompleteDone is triggered
Commit: https://github.com/vim/vim/commit/17e04781f26c24769e202351c194ee252927eee1
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jan 17 18:58:59 2020 +0100
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 17 Jan 2020 19:00:04 +0100 |
parents | 130acb903dbe |
children | 8cbadf7fb9d4 |
line wrap: on
line diff
--- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -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.