equal
deleted
inserted
replaced
|
1 To: [email protected] |
|
2 Subject: Patch 7.2.276 |
|
3 Fcc: outbox |
|
4 From: Bram Moolenaar <[email protected]> |
|
5 Mime-Version: 1.0 |
|
6 Content-Type: text/plain; charset=UTF-8 |
|
7 Content-Transfer-Encoding: 8bit |
|
8 ------------ |
|
9 |
|
10 Patch 7.2.276 |
|
11 Problem: Crash when setting 'isprint' to a small bullet. (Raul Coronado) |
|
12 Solution: Check for the character to be < 256. Also make it possible to |
|
13 specify a range of multi-byte characters. (Lech Lorens) |
|
14 Files: src/charset.c |
|
15 |
|
16 |
|
17 *** ../vim-7.2.275/src/charset.c 2009-10-07 16:19:52.000000000 +0200 |
|
18 --- src/charset.c 2009-11-03 12:46:12.000000000 +0100 |
|
19 *************** |
|
20 *** 187,195 **** |
|
21 if (VIM_ISDIGIT(*p)) |
|
22 c2 = getdigits(&p); |
|
23 else |
|
24 c2 = *p++; |
|
25 } |
|
26 ! if (c <= 0 || (c2 < c && c2 != -1) || c2 >= 256 |
|
27 || !(*p == NUL || *p == ',')) |
|
28 return FAIL; |
|
29 |
|
30 --- 187,200 ---- |
|
31 if (VIM_ISDIGIT(*p)) |
|
32 c2 = getdigits(&p); |
|
33 else |
|
34 + #ifdef FEAT_MBYTE |
|
35 + if (has_mbyte) |
|
36 + c2 = mb_ptr2char_adv(&p); |
|
37 + else |
|
38 + #endif |
|
39 c2 = *p++; |
|
40 } |
|
41 ! if (c <= 0 || c >= 256 || (c2 < c && c2 != -1) || c2 >= 256 |
|
42 || !(*p == NUL || *p == ',')) |
|
43 return FAIL; |
|
44 |
|
45 *** ../vim-7.2.275/src/version.c 2009-11-03 15:32:58.000000000 +0100 |
|
46 --- src/version.c 2009-11-03 16:03:18.000000000 +0100 |
|
47 *************** |
|
48 *** 678,679 **** |
|
49 --- 678,681 ---- |
|
50 { /* Add new patch number below this line */ |
|
51 + /**/ |
|
52 + 276, |
|
53 /**/ |
|
54 |
|
55 -- |
|
56 BRIDGEKEEPER: What is your favorite editor? |
|
57 GAWAIN: Emacs ... No, Viiiiiiiiiiimmmmmmm! |
|
58 "Monty Python and the Holy editor wars" PYTHON (MONTY) SOFTWARE LTD |
|
59 |
|
60 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ |
|
61 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
|
62 \\\ download, build and distribute -- http://www.A-A-P.org /// |
|
63 \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |