fix(extmarks): hide inline virt_text properly with 'smoothscroll' (#24106)

This commit is contained in:
zeertzjq
2023-06-22 18:15:04 +08:00
committed by GitHub
parent 958cc22836
commit f4f1ce1d16
2 changed files with 33 additions and 1 deletions

View File

@@ -1525,7 +1525,7 @@ int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool number_onl
// If there the text doesn't reach to the desired column, need to skip
// "skip_cells" cells when virtual text follows.
if (!wp->w_p_wrap && v > wlv.vcol) {
if ((!wp->w_p_wrap || (lnum == wp->w_topline && wp->w_skipcol > 0)) && v > wlv.vcol) {
wlv.skip_cells = (int)(v - wlv.vcol);
}