changeset 2356:eb1f2554cac5 vim73

Fix 'colorcolumn' adjecent columns not highlighted after end of line.
author Bram Moolenaar <bram@vim.org>
date Tue, 20 Jul 2010 11:29:07 +0200
parents 84c7eeeb09e2
children d706822076b1
files src/screen.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/screen.c
+++ b/src/screen.c
@@ -4715,6 +4715,10 @@ win_line(wp, lnum, startrow, endrow, noc
 			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, noc
 		    if (VCOL_HLC >= rightmost_vcol)
 			break;
 
-		    if (draw_color_col)
-			draw_color_col = advance_color_col(VCOL_HLC,
-								 &color_cols);
-
 		    ++vcol;
 		}
 	    }