Mercurial > vim
comparison src/screen.c @ 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 | 586a459f3980 |
children | 496feb41b83f |
comparison
equal
deleted
inserted
replaced
2355:84c7eeeb09e2 | 2356:eb1f2554cac5 |
---|---|
4713 #ifdef FEAT_MBYTE | 4713 #ifdef FEAT_MBYTE |
4714 if (enc_utf8) | 4714 if (enc_utf8) |
4715 ScreenLinesUC[off] = 0; | 4715 ScreenLinesUC[off] = 0; |
4716 #endif | 4716 #endif |
4717 ++col; | 4717 ++col; |
4718 if (draw_color_col) | |
4719 draw_color_col = advance_color_col(VCOL_HLC, | |
4720 &color_cols); | |
4721 | |
4718 if (wp->w_p_cuc && VCOL_HLC == (long)wp->w_virtcol) | 4722 if (wp->w_p_cuc && VCOL_HLC == (long)wp->w_virtcol) |
4719 ScreenAttrs[off++] = hl_attr(HLF_CUC); | 4723 ScreenAttrs[off++] = hl_attr(HLF_CUC); |
4720 else if (draw_color_col && VCOL_HLC == *color_cols) | 4724 else if (draw_color_col && VCOL_HLC == *color_cols) |
4721 ScreenAttrs[off++] = hl_attr(HLF_MC); | 4725 ScreenAttrs[off++] = hl_attr(HLF_MC); |
4722 else | 4726 else |
4723 ScreenAttrs[off++] = 0; | 4727 ScreenAttrs[off++] = 0; |
4724 | 4728 |
4725 if (VCOL_HLC >= rightmost_vcol) | 4729 if (VCOL_HLC >= rightmost_vcol) |
4726 break; | 4730 break; |
4727 | |
4728 if (draw_color_col) | |
4729 draw_color_col = advance_color_col(VCOL_HLC, | |
4730 &color_cols); | |
4731 | 4731 |
4732 ++vcol; | 4732 ++vcol; |
4733 } | 4733 } |
4734 } | 4734 } |
4735 #endif | 4735 #endif |