Fix 'colorcolumn' adjecent columns not highlighted after end of line.

--HG--
branch : vim73
This commit is contained in:
Bram Moolenaar
2010-07-20 11:29:07 +02:00
parent 5d1b07fbcd
commit a164a2ded7
+4 -4
View File
@@ -4715,6 +4715,10 @@ win_line(wp, lnum, startrow, endrow, nochange)
ScreenLinesUC[off] = 0;
#endif
++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)
ScreenAttrs[off++] = hl_attr(HLF_CUC);
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)
break;
if (draw_color_col)
draw_color_col = advance_color_col(VCOL_HLC,
&color_cols);
++vcol;
}
}