]>
Commit | Line | Data |
---|---|---|
be561239 AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 6.3.020 | |
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.020 | |
11 | Problem: When 'encoding' is "utf-8" and 'delcombine' is set, "dw" does not | |
12 | delete a word but only a combining character of the first | |
13 | character, if there is one. (Raphael Finkel) | |
14 | Solution: Correctly check that one character is being deleted. | |
15 | Files: src/misc1.c | |
16 | ||
17 | ||
18 | *** ../vim-6.3.019/src/misc1.c Wed Jun 9 14:56:25 2004 | |
19 | --- src/misc1.c Tue Aug 31 20:02:22 2004 | |
20 | *************** | |
21 | *** 2081,2087 **** | |
22 | #ifdef FEAT_MBYTE | |
23 | /* If 'delcombine' is set and deleting (less than) one character, only | |
24 | * delete the last combining character. */ | |
25 | ! if (p_deco && enc_utf8 && (*mb_ptr2len_check)(oldp + col) <= count) | |
26 | { | |
27 | int c1, c2; | |
28 | int n; | |
29 | --- 2081,2087 ---- | |
30 | #ifdef FEAT_MBYTE | |
31 | /* If 'delcombine' is set and deleting (less than) one character, only | |
32 | * delete the last combining character. */ | |
33 | ! if (p_deco && enc_utf8 && utfc_ptr2len_check(oldp + col) >= count) | |
34 | { | |
35 | int c1, c2; | |
36 | int n; | |
37 | *** ../vim-6.3.019/src/version.c Mon Aug 30 19:46:07 2004 | |
38 | --- src/version.c Tue Aug 31 20:03:57 2004 | |
39 | *************** | |
40 | *** 643,644 **** | |
41 | --- 643,646 ---- | |
42 | { /* Add new patch number below this line */ | |
43 | + /**/ | |
44 | + 20, | |
45 | /**/ | |
46 | ||
47 | -- | |
48 | hundred-and-one symptoms of being an internet addict: | |
49 | 257. Your "hundred-and-one" lists include well over 101 items, since you | |
50 | automatically interpret all numbers in hexadecimal notation. | |
51 | (hex 101 = decimal 257) | |
52 | ||
53 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
54 | /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
55 | \\\ Project leader for A-A-P -- http://www.A-A-P.org /// | |
56 | \\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html /// |