Mercurial > vim
diff runtime/doc/popup.txt @ 18597:b10ef01555c8 v8.1.2292
patch 8.1.2292: v:mouse_winid not set on click in popup window
Commit: https://github.com/vim/vim/commit/d002e411c60a231b7c136a84422b3d9bf7b8b4df
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Nov 11 21:45:05 2019 +0100
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 https://github.com/vim/vim/issues/5171)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 11 Nov 2019 22:00:03 +0100 |
parents | e5ef5d820b5b |
children | c4cdc715cb68 |
line wrap: on
line diff
--- a/runtime/doc/popup.txt +++ b/runtime/doc/popup.txt @@ -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()|.