• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Révisione351146e7974acd49f2e9aab749f31670b2c6044 (tree)
l'heure2007-09-18 05:39:42
Auteurvimboss
Commitervimboss

Message de Log

updated for version 7.1-116

Change Summary

Modification

diff -r 40f2a904bffb -r e351146e7974 src/screen.c
--- a/src/screen.c Mon Sep 17 20:21:33 2007 +0000
+++ b/src/screen.c Mon Sep 17 20:39:42 2007 +0000
@@ -2305,9 +2305,11 @@
23052305 prev_c = u8c;
23062306 #endif
23072307 /* Non-BMP character: display as ? or fullwidth ?. */
2308+#ifdef UNICODE16
23082309 if (u8c >= 0x10000)
23092310 ScreenLinesUC[idx] = (cells == 2) ? 0xff1f : (int)'?';
23102311 else
2312+#endif
23112313 ScreenLinesUC[idx] = u8c;
23122314 for (i = 0; i < Screen_mco; ++i)
23132315 {
@@ -3678,13 +3680,18 @@
36783680 if ((mb_l == 1 && c >= 0x80)
36793681 || (mb_l >= 1 && mb_c == 0)
36803682 || (mb_l > 1 && (!vim_isprintc(mb_c)
3681- || mb_c >= 0x10000)))
3683+# ifdef UNICODE16
3684+ || mb_c >= 0x10000
3685+# endif
3686+ )))
36823687 {
36833688 /*
36843689 * Illegal UTF-8 byte: display as <xx>.
36853690 * Non-BMP character : display as ? or fullwidth ?.
36863691 */
3692+# ifdef UNICODE16
36873693 if (mb_c < 0x10000)
3694+# endif
36883695 {
36893696 transchar_hex(extra, mb_c);
36903697 # ifdef FEAT_RIGHTLEFT
@@ -3692,11 +3699,13 @@
36923699 rl_mirror(extra);
36933700 # endif
36943701 }
3702+# ifdef UNICODE16
36953703 else if (utf_char2cells(mb_c) != 2)
36963704 STRCPY(extra, "?");
36973705 else
36983706 /* 0xff1f in UTF-8: full-width '?' */
36993707 STRCPY(extra, "\357\274\237");
3708+# endif
37003709
37013710 p_extra = extra;
37023711 c = *p_extra;
@@ -6245,6 +6254,7 @@
62456254 else
62466255 u8c = utfc_ptr2char(ptr, u8cc);
62476256 mbyte_cells = utf_char2cells(u8c);
6257+# ifdef UNICODE16
62486258 /* Non-BMP character: display as ? or fullwidth ?. */
62496259 if (u8c >= 0x10000)
62506260 {
@@ -6252,6 +6262,7 @@
62526262 if (attr == 0)
62536263 attr = hl_attr(HLF_8);
62546264 }
6265+# endif
62556266 # ifdef FEAT_ARABIC
62566267 if (p_arshape && !p_tbidi && ARABIC_CHAR(u8c))
62576268 {
diff -r 40f2a904bffb -r e351146e7974 src/version.c
--- a/src/version.c Mon Sep 17 20:21:33 2007 +0000
+++ b/src/version.c Mon Sep 17 20:39:42 2007 +0000
@@ -667,6 +667,8 @@
667667 static int included_patches[] =
668668 { /* Add new patch number below this line */
669669 /**/
670+ 116,
671+/**/
670672 115,
671673 /**/
672674 114,
Afficher sur ancien navigateur de dépôt.