4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Japanese single-width double-byte characters not handled correctly.
12 Solution: Put 0x8e in ScreenLines[] and the second byte in ScreenLines2[].
17 *** ../vim-7.2.353/src/screen.c 2010-01-19 17:40:39.000000000 +0100
18 --- src/screen.c 2010-02-03 15:47:19.000000000 +0100
22 ScreenLines[idx + 1] = 0;
24 ! else if (cells > 1) /* double-byte character */
26 ! if (enc_dbcs == DBCS_JPNU && *p == 0x8e)
27 ! ScreenLines2[idx] = p[1];
29 ! ScreenLines[idx + 1] = p[1];
36 ScreenLines[idx + 1] = 0;
38 ! else if (enc_dbcs == DBCS_JPNU && *p == 0x8e)
39 ! /* double-byte single width character */
40 ! ScreenLines2[idx] = p[1];
42 ! /* double-width character */
43 ! ScreenLines[idx + 1] = p[1];
52 if (enc_dbcs == DBCS_JPNU)
54 + if ((mb_c & 0xff00) == 0x8e00)
55 + ScreenLines[off] = 0x8e;
56 ScreenLines2[off] = mb_c & 0xff;
61 *** ../vim-7.2.353/src/version.c 2010-02-03 15:14:15.000000000 +0100
62 --- src/version.c 2010-02-03 15:43:43.000000000 +0100
66 { /* Add new patch number below this line */
72 hundred-and-one symptoms of being an internet addict:
73 189. You put your e-mail address in the upper left-hand corner of envelopes.
75 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
76 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
77 \\\ download, build and distribute -- http://www.A-A-P.org ///
78 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///