diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-10-15 10:03:30 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-10-15 10:03:30 +0200 |
commit | f5a94d5165bb9e390797da50a1fa7a87df3fbee4 (patch) | |
tree | 58f053e16666c59dd5940d80289caf22f078c6ab /src/move.c | |
parent | 3c81f47a0584e7915217397fed0488091a62df82 (diff) |
patch 9.0.2032: cannot get mouse click pos for tab or virt textv9.0.2032
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: #13335
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Diffstat (limited to 'src/move.c')
-rw-r--r-- | src/move.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/move.c b/src/move.c index 72490d2f85..bb6502467e 100644 --- a/src/move.c +++ b/src/move.c @@ -1547,7 +1547,7 @@ f_screenpos(typval_T *argvars UNUSED, typval_T *rettv) static int virtcol2col(win_T *wp, linenr_T lnum, int vcol) { - int offset = vcol2col(wp, lnum, vcol - 1); + int offset = vcol2col(wp, lnum, vcol - 1, NULL); char_u *line = ml_get_buf(wp->w_buffer, lnum, FALSE); char_u *p = line + offset; |