]>
Commit | Line | Data |
---|---|---|
f3c378e8 AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 7.0.142 | |
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 7.0.142 | |
11 | Problem: Using the middle mouse button in Select mode to paste text results | |
12 | in an extra "y". (Kriton Kyrimis) | |
13 | Solution: Let the middle mouse button replace the selected text with the | |
14 | contents of the clipboard. | |
15 | Files: src/normal.c | |
16 | ||
17 | ||
18 | *** ../vim-7.0.141/src/normal.c Tue Oct 10 13:27:30 2006 | |
19 | --- src/normal.c Tue Oct 17 16:54:57 2006 | |
20 | *************** | |
21 | *** 2380,2390 **** | |
22 | /* | |
23 | * If visual was active, yank the highlighted text and put it | |
24 | * before the mouse pointer position. | |
25 | */ | |
26 | if (VIsual_active) | |
27 | { | |
28 | ! stuffcharReadbuff('y'); | |
29 | ! stuffcharReadbuff(K_MIDDLEMOUSE); | |
30 | do_always = TRUE; /* ignore 'mouse' setting next time */ | |
31 | return FALSE; | |
32 | } | |
33 | --- 2380,2399 ---- | |
34 | /* | |
35 | * If visual was active, yank the highlighted text and put it | |
36 | * before the mouse pointer position. | |
37 | + * In Select mode replace the highlighted text with the clipboard. | |
38 | */ | |
39 | if (VIsual_active) | |
40 | { | |
41 | ! if (VIsual_select) | |
42 | ! { | |
43 | ! stuffcharReadbuff(Ctrl_G); | |
44 | ! stuffReadbuff("\"+p"); | |
45 | ! } | |
46 | ! else | |
47 | ! { | |
48 | ! stuffcharReadbuff('y'); | |
49 | ! stuffcharReadbuff(K_MIDDLEMOUSE); | |
50 | ! } | |
51 | do_always = TRUE; /* ignore 'mouse' setting next time */ | |
52 | return FALSE; | |
53 | } | |
54 | *** ../vim-7.0.141/src/version.c Tue Oct 17 16:26:52 2006 | |
55 | --- src/version.c Tue Oct 17 16:51:23 2006 | |
56 | *************** | |
57 | *** 668,669 **** | |
58 | --- 668,671 ---- | |
59 | { /* Add new patch number below this line */ | |
60 | + /**/ | |
61 | + 142, | |
62 | /**/ | |
63 | ||
64 | -- | |
65 | Keyboard not found. Think ENTER to continue. | |
66 | ||
67 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
68 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
69 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
70 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |