Mercurial > vim
comparison src/gui_x11.c @ 474:a5fcf36ef512 v7.0127
updated for version 7.0127
author | vimboss |
---|---|
date | Wed, 10 Aug 2005 21:07:57 +0000 |
parents | c773cb978acf |
children | 862863033fdd |
comparison
equal
deleted
inserted
replaced
473:4a7320e53f32 | 474:a5fcf36ef512 |
---|---|
2528 c = 0xbf; | 2528 c = 0xbf; |
2529 buf[wlen].byte1 = (unsigned)c >> 8; | 2529 buf[wlen].byte1 = (unsigned)c >> 8; |
2530 buf[wlen].byte2 = c; | 2530 buf[wlen].byte2 = c; |
2531 ++wlen; | 2531 ++wlen; |
2532 cells += utf_char2cells(c); | 2532 cells += utf_char2cells(c); |
2533 p += utf_ptr2len_check(p); | 2533 p += utf_ptr2len(p); |
2534 } | 2534 } |
2535 } | 2535 } |
2536 else if (has_mbyte) | 2536 else if (has_mbyte) |
2537 { | 2537 { |
2538 cells = 0; | 2538 cells = 0; |
2539 for (p = s; p < s + len; ) | 2539 for (p = s; p < s + len; ) |
2540 { | 2540 { |
2541 cells += ptr2cells(p); | 2541 cells += ptr2cells(p); |
2542 p += (*mb_ptr2len_check)(p); | 2542 p += (*mb_ptr2len)(p); |
2543 } | 2543 } |
2544 } | 2544 } |
2545 | 2545 |
2546 #endif | 2546 #endif |
2547 | 2547 |