aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/move.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-10-15 17:19:01 +0800
committerGitHub <noreply@github.com>2023-10-15 17:19:01 +0800
commitd974a3dcbb3757ebeb78fa64054c795ab7acdf1a (patch)
treed505cf88bb6f17fc3dcf33f96f811174b5b51d7e /src/nvim/move.c
parenta350fb2976d9b1e8b5753f557645a905f6da0d74 (diff)
downloadrneovim-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 'src/nvim/move.c')
-rw-r--r--src/nvim/move.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/move.c b/src/nvim/move.c
index dfd2bf795d..8be05aaa24 100644
--- a/src/nvim/move.c
+++ b/src/nvim/move.c
@@ -1142,7 +1142,7 @@ void f_screenpos(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
/// returned.
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 *line = ml_get_buf(wp->w_buffer, lnum);
char *p = line + offset;