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

f5a94d5165
This commit is contained in:
zeertzjq
2023-10-15 17:19:01 +08:00
committed by GitHub
parent a350fb2976
commit d974a3dcbb
8 changed files with 59 additions and 10 deletions

View File

@@ -3242,6 +3242,8 @@ function vim.fn.getmatches(win) end
--- wincol column inside "winid"
--- line text line inside "winid"
--- column text column inside "winid"
--- coladd offset (in screen columns) from the
--- start of the clicked char
--- All numbers are 1-based.
---
--- If not over a window, e.g. when in the command line, then only