Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
1545:cbe70f2e756d | 1546:75f5889a5d8e |
---|---|
1288 incr = CHARSIZE(c); | 1288 incr = CHARSIZE(c); |
1289 | 1289 |
1290 /* If a double-cell char doesn't fit at the end of a line | 1290 /* If a double-cell char doesn't fit at the end of a line |
1291 * it wraps to the next line, it's like this char is three | 1291 * it wraps to the next line, it's like this char is three |
1292 * cells wide. */ | 1292 * cells wide. */ |
1293 if (incr == 2 && wp->w_p_wrap && in_win_border(wp, vcol)) | 1293 if (incr == 2 && wp->w_p_wrap && MB_BYTE2LEN(*ptr) > 1 |
1294 && in_win_border(wp, vcol)) | |
1294 { | 1295 { |
1295 ++incr; | 1296 ++incr; |
1296 head = 1; | 1297 head = 1; |
1297 } | 1298 } |
1298 } | 1299 } |