1
0
forked from aniani/vim

patch 8.1.2292: v:mouse_winid not set on click in popup window

Problem:    v:mouse_winid not set on click in popup window.
Solution:   Set v:mouse_winid. (closes #5171)
This commit is contained in:
Bram Moolenaar
2019-11-11 21:45:05 +01:00
parent adf4aa200b
commit d002e411c6
4 changed files with 9 additions and 2 deletions

View File

@@ -863,8 +863,9 @@ Some recommended key actions:
Tab accept current suggestion
A mouse click arrives as <LeftMouse>. The coordinates are in |v:mouse_col|
and |v:mouse_lnum|. The top-left screen cell of the popup is col 1, row 1
(not counting the border).
and |v:mouse_lnum|. |v:mouse_winid| holds the window ID, |v:mouse_win| is
always zero. The top-left screen cell of the popup is col 1, row 1 (not
counting the border).
Vim provides standard filters |popup_filter_menu()| and
|popup_filter_yesno()|.