]> git.pld-linux.org Git - packages/vim.git/blame - 6.4.005
- release 2
[packages/vim.git] / 6.4.005
CommitLineData
c7a9d944
AG
1To: vim-dev@vim.org
2Subject: Patch 6.4.005
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=ISO-8859-1
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 6.4.005
11Problem: When truncating a message with multi-byte characters the '<' may
12 be written before the buffer. (Pawel S. Veselov)
13Solution: Don't write the '<' when there is sufficient room.
14Files: src/message.c
15
16
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
19***************
20*** 718,723 ****
21--- 718,727 ----
22 {
23 int size = vim_strsize(s);
24
25+ /* There may be room anyway when there are multibyte chars. */
26+ if (size <= room)
27+ return s;
28+
29 for (n = 0; size >= room; )
30 {
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
34***************
35*** 643,644 ****
36--- 643,646 ----
37 { /* Add new patch number below this line */
38+ /**/
39+ 5,
40 /**/
41
42--
43ARTHUR: Old woman!
44DENNIS: Man!
45ARTHUR: Man. I'm sorry. Old man, What knight live in that castle over there?
46DENNIS: I'm thirty-seven.
47 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
48
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 ///
This page took 0.132381 seconds and 4 git commands to generate.