]>
Commit | Line | Data |
---|---|---|
46c5dd4b AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 6.3.051 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=ISO-8859-1 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 6.3.051 | |
11 | Problem: When 'wildmenu' is set and completed file names contain multi-byte | |
12 | characters Vim may crash. | |
13 | Solution: Reserve room for multi-byte characters. (Yasuhiro Matsumoto) | |
14 | Files: src/screen.c | |
15 | ||
16 | ||
17 | *** ../vim-6.3.050/src/screen.c Tue Dec 7 13:12:08 2004 | |
18 | --- src/screen.c Thu Dec 16 12:45:06 2004 | |
19 | *************** | |
20 | *** 4830,4836 **** | |
21 | if (matches == NULL) /* interrupted completion? */ | |
22 | return; | |
23 | ||
24 | ! buf = alloc((unsigned)Columns + 1); | |
25 | if (buf == NULL) | |
26 | return; | |
27 | ||
28 | --- 4830,4841 ---- | |
29 | if (matches == NULL) /* interrupted completion? */ | |
30 | return; | |
31 | ||
32 | ! #ifdef FEAT_MBYTE | |
33 | ! if (has_mbyte) | |
34 | ! buf = alloc((unsigned)Columns * MB_MAXBYTES + 1); | |
35 | ! else | |
36 | ! #endif | |
37 | ! buf = alloc((unsigned)Columns + 1); | |
38 | if (buf == NULL) | |
39 | return; | |
40 | ||
41 | *** ../vim-6.3.050/src/version.c Thu Dec 16 12:41:08 2004 | |
42 | --- src/version.c Thu Dec 16 12:47:40 2004 | |
43 | *************** | |
44 | *** 643,644 **** | |
45 | --- 643,646 ---- | |
46 | { /* Add new patch number below this line */ | |
47 | + /**/ | |
48 | + 51, | |
49 | /**/ | |
50 | ||
51 | -- | |
52 | hundred-and-one symptoms of being an internet addict: | |
53 | 88. Every single time you press the 'Get mail' button...it does get new mail. | |
54 | ||
55 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
56 | /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
57 | \\\ Project leader for A-A-P -- http://www.A-A-P.org /// | |
58 | \\\ Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html /// |