]>
Commit | Line | Data |
---|---|---|
3cc08688 AM |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 6.3.074 | |
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.074 | |
11 | Problem: When mswin.vim is used and 'insertmode' is set, typing text in | |
12 | Select mode and then using CTRL-V results in <SNR>99_Pastegi. | |
13 | (Georg Dahn) | |
14 | Solution: When restart_edit is set use "d" instead of "c" to remove the | |
15 | selected text to avoid calling edit() twice. | |
16 | Files: src/normal.c | |
17 | ||
18 | ||
19 | *** ../vim-6.3.073/src/normal.c Thu Nov 18 10:47:49 2004 | |
20 | --- src/normal.c Fri May 20 13:14:14 2005 | |
21 | *************** | |
22 | *** 643,654 **** | |
23 | buf[0] = c; | |
24 | buf[1] = NUL; | |
25 | # endif | |
26 | ! /* Fake a "c"hange command. | |
27 | * Insert the typed character in the typeahead buffer, so that it will | |
28 | * be mapped in Insert mode. Required for ":lmap" to work. May cause | |
29 | * mapping a character from ":vnoremap"... */ | |
30 | (void)ins_typebuf(buf, REMAP_YES, 0, !KeyTyped, FALSE); | |
31 | ! c = 'c'; | |
32 | } | |
33 | #endif | |
34 | ||
35 | --- 643,659 ---- | |
36 | buf[0] = c; | |
37 | buf[1] = NUL; | |
38 | # endif | |
39 | ! /* Fake a "c"hange command. When "restart_edit" is set (e.g., because | |
40 | ! * 'insertmode' is set) fake a "d"elete command, Insert mode will | |
41 | ! * restart automatically. | |
42 | * Insert the typed character in the typeahead buffer, so that it will | |
43 | * be mapped in Insert mode. Required for ":lmap" to work. May cause | |
44 | * mapping a character from ":vnoremap"... */ | |
45 | (void)ins_typebuf(buf, REMAP_YES, 0, !KeyTyped, FALSE); | |
46 | ! if (restart_edit != 0) | |
47 | ! c = 'd'; | |
48 | ! else | |
49 | ! c = 'c'; | |
50 | } | |
51 | #endif | |
52 | ||
53 | *** ../vim-6.3.073/src/version.c Sun May 22 12:11:10 2005 | |
54 | --- src/version.c Sun May 22 12:16:16 2005 | |
55 | *************** | |
56 | *** 643,644 **** | |
57 | --- 643,646 ---- | |
58 | { /* Add new patch number below this line */ | |
59 | + /**/ | |
60 | + 74, | |
61 | /**/ | |
62 | ||
63 | -- | |
64 | NEIL INNES PLAYED: THE FIRST SELF-DESTRUCTIVE MONK, ROBIN'S LEAST FAVORITE | |
65 | MINSTREL, THE PAGE CRUSHED BY A RABBIT, THE OWNER OF A DUCK | |
66 | "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD | |
67 | ||
68 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
69 | /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
70 | \\\ Project leader for A-A-P -- http://www.A-A-P.org /// | |
71 | \\\ Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html /// |