equal
deleted
inserted
replaced
1 To: [email protected] |
|
2 Subject: Patch 7.2.267 |
|
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.267 |
|
11 Problem: Crash for narrow window and double-width character. |
|
12 Solution: Check for zero width. (Taro Muraoka) |
|
13 Files: src/charset.c |
|
14 |
|
15 |
|
16 *** ../vim-7.2.266/src/charset.c 2009-09-11 14:02:25.000000000 +0200 |
|
17 --- src/charset.c 2009-10-07 16:17:27.000000000 +0200 |
|
18 *************** |
|
19 *** 1218,1223 **** |
|
20 --- 1218,1225 ---- |
|
21 if ((int)vcol == width1 - 1) |
|
22 return TRUE; |
|
23 width2 = width1 + win_col_off2(wp); |
|
24 + if (width2 <= 0) |
|
25 + return FALSE; |
|
26 return ((vcol - width1) % width2 == width2 - 1); |
|
27 } |
|
28 #endif /* FEAT_MBYTE */ |
|
29 *** ../vim-7.2.266/src/version.c 2009-09-30 15:15:33.000000000 +0200 |
|
30 --- src/version.c 2009-10-07 16:19:05.000000000 +0200 |
|
31 *************** |
|
32 *** 678,679 **** |
|
33 --- 678,681 ---- |
|
34 { /* Add new patch number below this line */ |
|
35 + /**/ |
|
36 + 267, |
|
37 /**/ |
|
38 |
|
39 -- |
|
40 You got to work at a mill? Lucky! I got sent back to work in the |
|
41 acid-mines for my daily crust of stale bread... which not even the |
|
42 birds would eat. |
|
43 |
|
44 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ |
|
45 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
|
46 \\\ download, build and distribute -- http://www.A-A-P.org /// |
|
47 \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |
|