1
0
forked from aniani/vim

patch 7.4.949

Problem:    When using 'colorcolumn' and there is a sign with a fullwidth
            character the highlighting is wrong. (Andrew Stewart)
Solution:   Only increment vcol when in the right state. (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2015-12-03 14:29:02 +01:00
parent 20ad69ccfb
commit 32a214e78d
4 changed files with 54 additions and 2 deletions

View File

@@ -5422,7 +5422,12 @@ win_line(wp, lnum, startrow, endrow, nochange)
else
/* DBCS: Put second byte in the second screen char. */
ScreenLines[off] = mb_c & 0xff;
++vcol;
if (draw_state > WL_NR
#ifdef FEAT_DIFF
&& filler_todo <= 0
#endif
)
++vcol;
/* When "tocol" is halfway a character, set it to the end of
* the character, otherwise highlighting won't stop. */
if (tocol == vcol)