diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-02-09 18:14:12 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-02-09 18:14:12 +0100 |
commit | df23d7f4bd7546f3152ea003856525591218565b (patch) | |
tree | ef204d9b58b04f012e4d4d7c6e804de657588fec /src/drawline.c | |
parent | ae07ebc04b0726e12b1af39d52e01d86ae79ef0a (diff) |
patch 9.1.0084: Visual hl wrong when it ends before multibyte 'showbreak'v9.1.0084
Problem: Visual hl wrong when it ends before multibyte 'showbreak'.
(lacygoil)
Solution: Use vcol_sbr instead of adding n_extra.
(zeertzjq)
fixes: #11272
closes: #13996
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/drawline.c')
-rw-r--r-- | src/drawline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drawline.c b/src/drawline.c index f6c01d5973..0f3400f9da 100644 --- a/src/drawline.c +++ b/src/drawline.c @@ -589,7 +589,7 @@ handle_showbreak_and_filler(win_T *wp, winlinevars_T *wlv) // Correct end of highlighted area for 'showbreak', // required when 'linebreak' is also set. if (wlv->tocol == wlv->vcol) - wlv->tocol += wlv->n_extra; + wlv->tocol = wlv->vcol_sbr; // combine 'showbreak' with 'wincolor' wlv->char_attr = hl_combine_attr(wlv->win_attr, HL_ATTR(HLF_AT)); # ifdef FEAT_SYN_HL |