4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
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.
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
23 * If visual was active, yank the highlighted text and put it
24 * before the mouse pointer position.
28 ! stuffcharReadbuff('y');
29 ! stuffcharReadbuff(K_MIDDLEMOUSE);
30 do_always = TRUE; /* ignore 'mouse' setting next time */
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.
43 ! stuffcharReadbuff(Ctrl_G);
44 ! stuffReadbuff("\"+p");
48 ! stuffcharReadbuff('y');
49 ! stuffcharReadbuff(K_MIDDLEMOUSE);
51 do_always = TRUE; /* ignore 'mouse' setting next time */
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
59 { /* Add new patch number below this line */
65 Keyboard not found. Think ENTER to continue.
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 ///