mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
Fix 'colorcolumn' adjecent columns not highlighted after end of line.
This commit is contained in:
parent
fcb7ab6117
commit
973bd47c48
@ -4715,6 +4715,10 @@ win_line(wp, lnum, startrow, endrow, nochange)
|
|||||||
ScreenLinesUC[off] = 0;
|
ScreenLinesUC[off] = 0;
|
||||||
#endif
|
#endif
|
||||||
++col;
|
++col;
|
||||||
|
if (draw_color_col)
|
||||||
|
draw_color_col = advance_color_col(VCOL_HLC,
|
||||||
|
&color_cols);
|
||||||
|
|
||||||
if (wp->w_p_cuc && VCOL_HLC == (long)wp->w_virtcol)
|
if (wp->w_p_cuc && VCOL_HLC == (long)wp->w_virtcol)
|
||||||
ScreenAttrs[off++] = hl_attr(HLF_CUC);
|
ScreenAttrs[off++] = hl_attr(HLF_CUC);
|
||||||
else if (draw_color_col && VCOL_HLC == *color_cols)
|
else if (draw_color_col && VCOL_HLC == *color_cols)
|
||||||
@ -4725,10 +4729,6 @@ win_line(wp, lnum, startrow, endrow, nochange)
|
|||||||
if (VCOL_HLC >= rightmost_vcol)
|
if (VCOL_HLC >= rightmost_vcol)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (draw_color_col)
|
|
||||||
draw_color_col = advance_color_col(VCOL_HLC,
|
|
||||||
&color_cols);
|
|
||||||
|
|
||||||
++vcol;
|
++vcol;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user