summaryrefslogtreecommitdiffstats
path: root/runtime/doc/popup.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-11-16 18:22:41 +0100
committerBram Moolenaar <Bram@vim.org>2019-11-16 18:22:41 +0100
commitdb3a205147ce2c335d5c2181c1f789277f8775b0 (patch)
tree1bb6a6d5158fee1d79718053ffa167396acf2970 /runtime/doc/popup.txt
parent08f23636aef595f4cc061dfee8248dca97df16b3 (diff)
patch 8.1.2304: cannot get the mouse position when getting a mouse clickv8.1.2304
Problem: Cannot get the mouse position when getting a mouse click. Solution: Add getmousepos().
Diffstat (limited to 'runtime/doc/popup.txt')
-rw-r--r--runtime/doc/popup.txt6
1 files changed, 2 insertions, 4 deletions
diff --git a/runtime/doc/popup.txt b/runtime/doc/popup.txt
index 39e4a3ce83..bdd8272811 100644
--- a/runtime/doc/popup.txt
+++ b/runtime/doc/popup.txt
@@ -862,10 +862,8 @@ Some recommended key actions:
cursor keys select another entry
Tab accept current suggestion
-A mouse click arrives as <LeftMouse>. The coordinates are in |v:mouse_col|
-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).
+A mouse click arrives as <LeftMouse>. The coordinates can be obtained with
+|mousegetpos()|.
Vim provides standard filters |popup_filter_menu()| and
|popup_filter_yesno()|.