1
0
forked from aniani/vim

patch 9.0.2032: cannot get mouse click pos for tab or virt text

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>
This commit is contained in:
zeertzjq
2023-10-15 10:03:30 +02:00
committed by Christian Brabandt
parent 3c81f47a05
commit f5a94d5165
8 changed files with 51 additions and 14 deletions

View File

@@ -74,7 +74,7 @@ find_word_under_cursor(
}
}
col = vcol2col(wp, lnum, col);
col = vcol2col(wp, lnum, col, NULL);
scol = col;
if (VIsual_active