4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: When truncating a message with multi-byte characters the '<' may
12 be written before the buffer. (Pawel S. Veselov)
13 Solution: Don't write the '<' when there is sufficient room.
17 *** ../vim-6.4.004/src/message.c Sun Jun 13 12:15:03 2004
18 --- src/message.c Thu Dec 22 22:26:05 2005
23 int size = vim_strsize(s);
25 + /* There may be room anyway when there are multibyte chars. */
29 for (n = 0; size >= room; )
31 size -= (*mb_ptr2cells)(s + n);
32 *** ../vim-6.4.004/src/version.c Thu Dec 1 16:08:05 2005
33 --- src/version.c Thu Dec 22 22:33:27 2005
37 { /* Add new patch number below this line */
45 ARTHUR: Man. I'm sorry. Old man, What knight live in that castle over there?
46 DENNIS: I'm thirty-seven.
47 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
49 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
50 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
51 \\\ download, build and distribute -- http://www.A-A-P.org ///
52 \\\ help me help AIDS victims -- http://www.ICCF.nl ///