0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.1-116

This commit is contained in:
Bram Moolenaar
2007-09-17 20:39:42 +00:00
parent ad6c2274e8
commit 1193636b45
2 changed files with 14 additions and 1 deletions

View File

@@ -2305,9 +2305,11 @@ fold_line(wp, fold_count, foldinfo, lnum, row)
prev_c = u8c; prev_c = u8c;
#endif #endif
/* Non-BMP character: display as ? or fullwidth ?. */ /* Non-BMP character: display as ? or fullwidth ?. */
#ifdef UNICODE16
if (u8c >= 0x10000) if (u8c >= 0x10000)
ScreenLinesUC[idx] = (cells == 2) ? 0xff1f : (int)'?'; ScreenLinesUC[idx] = (cells == 2) ? 0xff1f : (int)'?';
else else
#endif
ScreenLinesUC[idx] = u8c; ScreenLinesUC[idx] = u8c;
for (i = 0; i < Screen_mco; ++i) for (i = 0; i < Screen_mco; ++i)
{ {
@@ -3678,13 +3680,18 @@ win_line(wp, lnum, startrow, endrow, nochange)
if ((mb_l == 1 && c >= 0x80) if ((mb_l == 1 && c >= 0x80)
|| (mb_l >= 1 && mb_c == 0) || (mb_l >= 1 && mb_c == 0)
|| (mb_l > 1 && (!vim_isprintc(mb_c) || (mb_l > 1 && (!vim_isprintc(mb_c)
|| mb_c >= 0x10000))) # ifdef UNICODE16
|| mb_c >= 0x10000
# endif
)))
{ {
/* /*
* Illegal UTF-8 byte: display as <xx>. * Illegal UTF-8 byte: display as <xx>.
* Non-BMP character : display as ? or fullwidth ?. * Non-BMP character : display as ? or fullwidth ?.
*/ */
# ifdef UNICODE16
if (mb_c < 0x10000) if (mb_c < 0x10000)
# endif
{ {
transchar_hex(extra, mb_c); transchar_hex(extra, mb_c);
# ifdef FEAT_RIGHTLEFT # ifdef FEAT_RIGHTLEFT
@@ -3692,11 +3699,13 @@ win_line(wp, lnum, startrow, endrow, nochange)
rl_mirror(extra); rl_mirror(extra);
# endif # endif
} }
# ifdef UNICODE16
else if (utf_char2cells(mb_c) != 2) else if (utf_char2cells(mb_c) != 2)
STRCPY(extra, "?"); STRCPY(extra, "?");
else else
/* 0xff1f in UTF-8: full-width '?' */ /* 0xff1f in UTF-8: full-width '?' */
STRCPY(extra, "\357\274\237"); STRCPY(extra, "\357\274\237");
# endif
p_extra = extra; p_extra = extra;
c = *p_extra; c = *p_extra;
@@ -6245,6 +6254,7 @@ screen_puts_len(text, len, row, col, attr)
else else
u8c = utfc_ptr2char(ptr, u8cc); u8c = utfc_ptr2char(ptr, u8cc);
mbyte_cells = utf_char2cells(u8c); mbyte_cells = utf_char2cells(u8c);
# ifdef UNICODE16
/* Non-BMP character: display as ? or fullwidth ?. */ /* Non-BMP character: display as ? or fullwidth ?. */
if (u8c >= 0x10000) if (u8c >= 0x10000)
{ {
@@ -6252,6 +6262,7 @@ screen_puts_len(text, len, row, col, attr)
if (attr == 0) if (attr == 0)
attr = hl_attr(HLF_8); attr = hl_attr(HLF_8);
} }
# endif
# ifdef FEAT_ARABIC # ifdef FEAT_ARABIC
if (p_arshape && !p_tbidi && ARABIC_CHAR(u8c)) if (p_arshape && !p_tbidi && ARABIC_CHAR(u8c))
{ {

View File

@@ -666,6 +666,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
116,
/**/ /**/
115, 115,
/**/ /**/