0
0
mirror of https://github.com/vim/vim.git synced 2025-10-17 07:44:28 -04:00

patch 9.1.0815: "above" virtual text causes wrong 'colorcolumn' position

Problem:  "above" virtual text causes wrong 'colorcolumn' position.
          (@matrdr)
Solution: Use the number of cells instead of bytes for vcol_off_tp.
          (zeertzjq)

fixes: #15946
closes: #15948

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2024-10-27 19:23:34 +01:00
committed by Christian Brabandt
parent de79f9129a
commit 91d26aa338
4 changed files with 40 additions and 1 deletions

View File

@@ -2263,7 +2263,7 @@ win_line(
}
if (above)
wlv.vcol_off_tp = wlv.n_extra;
wlv.vcol_off_tp = vim_strsize(wlv.p_extra);
if (lcs_eol_one < 0
&& wp->w_p_wrap