mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 14:56:08 +00:00
fix(drawline): fix missing Visual hl on double-width fold char (#24308)
This commit is contained in:
@@ -1805,9 +1805,11 @@ int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool number_onl
|
||||
&& (area_highlighting || spv->spv_has_spell || extra_check)) {
|
||||
// handle Visual or match highlighting in this line
|
||||
if (wlv.vcol == wlv.fromcol
|
||||
|| (wlv.vcol + 1 == wlv.fromcol && wlv.n_extra == 0
|
||||
&& utf_ptr2cells(ptr) > 1)
|
||||
|| ((int)vcol_prev == fromcol_prev
|
||||
|| (wlv.vcol + 1 == wlv.fromcol
|
||||
&& ((wlv.n_extra == 0 && utf_ptr2cells(ptr) > 1)
|
||||
|| (wlv.n_extra > 0 && wlv.p_extra != NULL
|
||||
&& utf_ptr2cells(wlv.p_extra) > 1)))
|
||||
|| (vcol_prev == fromcol_prev
|
||||
&& vcol_prev < wlv.vcol // not at margin
|
||||
&& wlv.vcol < wlv.tocol)) {
|
||||
area_attr = vi_attr; // start highlighting
|
||||
|
Reference in New Issue
Block a user