Skip to content

Commit

Permalink
vim-patch:8.1.1875: cannot get size and position of the popup menu
Browse files Browse the repository at this point in the history
Problem:    Cannot get size and position of the popup menu.
Solution:   Add pum_getpos(). (Ben Jackson, closes vim/vim#4827)
vim/vim@e9bd572

neovim#11562 backported the vim patch.
This patch only updates the runtime/doc/ files to match Vim.
  • Loading branch information
janlazo committed Dec 29, 2019
1 parent e80f610 commit 6c606c1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
14 changes: 7 additions & 7 deletions runtime/doc/autocmd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -583,13 +583,6 @@ ColorSchemePre Before loading a color scheme. |:colorscheme|
Useful to setup removing things added by a
color scheme, before another one is loaded.

*CompleteDone*
CompleteDone After Insert mode completion is done. Either
when something was completed or abandoning
completion. |ins-completion|
The |v:completed_item| variable contains the
completed item.

CompleteChanged *CompleteChanged*
After each time the Insert mode completion
menu changed. Not fired on popup menu hide,
Expand All @@ -610,6 +603,13 @@ CompleteChanged *CompleteChanged*
The size and position of the popup are also
available by calling |pum_getpos()|.

*CompleteDone*
CompleteDone After Insert mode completion is done. Either
when something was completed or abandoning
completion. |ins-completion|
The |v:completed_item| variable contains the
completed item.

*CursorHold*
CursorHold When the user doesn't press a key for the time
specified with 'updatetime'. Not re-triggered
Expand Down
5 changes: 3 additions & 2 deletions runtime/doc/eval.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3121,8 +3121,9 @@ complete_info([{what}])
the items listed in {what} are returned. Unsupported items in
{what} are silently ignored.

To get the position of the popup menu, see |pum_getpos()|. It's
also available in |v:event| during the |CompleteChanged| event.
To get the position and size of the popup menu, see
|pum_getpos()|. It's also available in |v:event| during the
|CompleteChanged| event.

Examples: >
" Get all items
Expand Down

0 comments on commit 6c606c1

Please sign in to comment.