4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: When editing a utf-8 file in an utf-8 xterm and there is a
12 multi-byte character in the last column, displaying is messed up.
14 Solution: Check for a multi-byte character, not a multi-column character.
18 *** ../vim-6.3.060/src/screen.c Tue Jan 18 10:53:53 2005
19 --- src/screen.c Wed Jan 19 11:03:00 2005
23 /* When there is a multi-byte character, just output a
24 * space to keep it simple. */
25 ! if (has_mbyte && mb_off2cells(LineOffset[screen_row - 1]
26 ! + (unsigned)Columns - 1) != 1)
32 /* When there is a multi-byte character, just output a
33 * space to keep it simple. */
34 ! if (has_mbyte && MB_BYTE2LEN(ScreenLines[LineOffset[
35 ! screen_row - 1] + (Columns - 1)]) > 1)
39 *** ../vim-6.3.060/src/version.c Sat Jan 29 16:19:09 2005
40 --- src/version.c Sat Jan 29 16:25:13 2005
44 { /* Add new patch number below this line */
50 Article in the first Free Software Magazine: "Bram Moolenaar studied electrical
51 engineering at the Technical University of Delft and graduated in 1985 on a
52 multi-processor Unix architecture."
53 Response by "dimator": Could the school not afford a proper stage for the
56 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
57 /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
58 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
59 \\\ Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html ///