Mercurial > vim
changeset 1546:75f5889a5d8e v7.1.260
updated for version 7.1-260
author | vimboss |
---|---|
date | Wed, 20 Feb 2008 13:59:32 +0000 |
parents | cbe70f2e756d |
children | e72e30c69d58 |
files | src/charset.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
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;