Mercurial > vim
diff src/charset.c @ 1546:75f5889a5d8e v7.1.260
updated for version 7.1-260
author | vimboss |
---|---|
date | Wed, 20 Feb 2008 13:59:32 +0000 |
parents | 1d4c67f84709 |
children | 82b5078be2dd |
line wrap: on
line diff
--- a/src/charset.c +++ b/src/charset.c @@ -1290,7 +1290,8 @@ getvcol(wp, pos, start, cursor, end) /* If a double-cell char doesn't fit at the end of a line * it wraps to the next line, it's like this char is three * cells wide. */ - if (incr == 2 && wp->w_p_wrap && in_win_border(wp, vcol)) + if (incr == 2 && wp->w_p_wrap && MB_BYTE2LEN(*ptr) > 1 + && in_win_border(wp, vcol)) { ++incr; head = 1;