fix(extmarks): fix virt_text_hide with 'nowrap' and multibyte (#23757)

This commit is contained in:
zeertzjq
2023-05-26 10:41:19 +08:00
committed by GitHub
parent f733595e79
commit a6dd67f5b6
2 changed files with 21 additions and 1 deletions

View File

@@ -1729,7 +1729,7 @@ int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, int mod_top, bo
wlv.draw_state = WL_LINE;
if (has_decor && wlv.row == startrow + wlv.filler_lines) {
// hide virt_text on text hidden by 'nowrap'
decor_redraw_col(wp, wlv.vcol, wlv.off, true, &decor_state);
decor_redraw_col(wp, (colnr_T)(ptr - line), wlv.off, true, &decor_state);
}
win_line_continue(&wlv); // use wlv.saved_ values
}