]>
Commit | Line | Data |
---|---|---|
d02ad552 AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 6.2.207 | |
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.2.207 | |
11 | Problem: When 'encoding' is a multi-byte encoding, expanding an | |
12 | abbreviation that starts where insertion started results in | |
13 | characters before the insertion to be deleted. (Xiangjiang Ma) | |
14 | Solution: Stop searching leftwards for the start of the word at the position | |
15 | where insertion started. | |
16 | Files: src/getchar.c | |
17 | ||
18 | ||
19 | *** ../vim-6.2.206/src/getchar.c Sat Sep 27 19:36:46 2003 | |
20 | --- src/getchar.c Thu Jan 22 18:11:38 2004 | |
21 | *************** | |
22 | *** 1234,1239 **** | |
23 | --- 1234,1240 ---- | |
24 | ||
25 | /* | |
26 | * Restore the typeahead to what it was before calling save_typeahead(). | |
27 | + * The allocated memory is freed, can only be called once! | |
28 | */ | |
29 | void | |
30 | restore_typeahead(tp) | |
31 | *************** | |
32 | *** 3879,3885 **** | |
33 | is_id = vim_iswordp(mb_prevptr(ptr, p)); | |
34 | } | |
35 | clen = 1; | |
36 | ! while (p > ptr) | |
37 | { | |
38 | p = mb_prevptr(ptr, p); | |
39 | if (vim_isspace(*p) || (!vim_abbr && is_id != vim_iswordp(p))) | |
40 | --- 3880,3886 ---- | |
41 | is_id = vim_iswordp(mb_prevptr(ptr, p)); | |
42 | } | |
43 | clen = 1; | |
44 | ! while (p > ptr + mincol) | |
45 | { | |
46 | p = mb_prevptr(ptr, p); | |
47 | if (vim_isspace(*p) || (!vim_abbr && is_id != vim_iswordp(p))) | |
48 | *** ../vim-6.2.206/src/version.c Sun Jan 25 20:28:03 2004 | |
49 | --- src/version.c Sun Jan 25 20:29:20 2004 | |
50 | *************** | |
51 | *** 639,640 **** | |
52 | --- 639,642 ---- | |
53 | { /* Add new patch number below this line */ | |
54 | + /**/ | |
55 | + 207, | |
56 | /**/ | |
57 | ||
58 | -- | |
59 | INSPECTOR END OF FILM: Move along. There's nothing to see! Keep moving! | |
60 | [Suddenly he notices the cameras.] | |
61 | INSPECTOR END OF FILM: (to Camera) All right, put that away sonny. | |
62 | [He walks over to it and puts his hand over the lens.] | |
63 | "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD | |
64 | ||
65 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
66 | /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
67 | \\\ Project leader for A-A-P -- http://www.A-A-P.org /// | |
68 | \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html /// |