diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-10-15 17:19:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-15 17:19:01 +0800 |
commit | d974a3dcbb3757ebeb78fa64054c795ab7acdf1a (patch) | |
tree | d505cf88bb6f17fc3dcf33f96f811174b5b51d7e /test/functional/ui/fold_spec.lua | |
parent | a350fb2976d9b1e8b5753f557645a905f6da0d74 (diff) | |
download | rneovim-d974a3dcbb3757ebeb78fa64054c795ab7acdf1a.tar.gz rneovim-d974a3dcbb3757ebeb78fa64054c795ab7acdf1a.tar.bz2 rneovim-d974a3dcbb3757ebeb78fa64054c795ab7acdf1a.zip |
vim-patch:9.0.2032: cannot get mouse click pos for tab or virt text (#25653)
Problem: Cannot accurately get mouse clicking position when clicking on
a TAB or with virtual text.
Solution: Add a "coladd" field to getmousepos() result.
closes: vim/vim#13335
https://github.com/vim/vim/commit/f5a94d5165bb9e390797da50a1fa7a87df3fbee4
Diffstat (limited to 'test/functional/ui/fold_spec.lua')
-rw-r--r-- | test/functional/ui/fold_spec.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/functional/ui/fold_spec.lua b/test/functional/ui/fold_spec.lua index 264c0355ae..9a0182ea29 100644 --- a/test/functional/ui/fold_spec.lua +++ b/test/functional/ui/fold_spec.lua @@ -2155,13 +2155,14 @@ describe("folded lines", function() meths.input_mouse('left', 'press', '', multigrid and 2 or 0, 4, 0) eq({ - column = 1, - line = 3, screencol = 1, screenrow = 5, - wincol = 1, winid = 1000, + wincol = 1, winrow = 5, + line = 3, + column = 1, + coladd = 0, }, funcs.getmousepos()) meths.buf_set_extmark(0, ns, 1, 0, { virt_lines = {{{"more virt_line below line 2", ""}}} }) |