Mercurial > vim
diff runtime/doc/popup.txt @ 18623:3089b422b9dc v8.1.2304
patch 8.1.2304: cannot get the mouse position when getting a mouse click
Commit: https://github.com/vim/vim/commit/db3a205147ce2c335d5c2181c1f789277f8775b0
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 16 18:22:41 2019 +0100
patch 8.1.2304: cannot get the mouse position when getting a mouse click
Problem: Cannot get the mouse position when getting a mouse click.
Solution: Add getmousepos().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 16 Nov 2019 18:30:04 +0100 |
parents | c4cdc715cb68 |
children | cb3163d590a1 |
line wrap: on
line diff
--- 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()|.