|
Karsten Hopp |
c5827d |
To: vim-dev@vim.org
|
|
Karsten Hopp |
c5827d |
Subject: Patch 7.0.142
|
|
Karsten Hopp |
c5827d |
Fcc: outbox
|
|
Karsten Hopp |
c5827d |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
c5827d |
Mime-Version: 1.0
|
|
Karsten Hopp |
c5827d |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
c5827d |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
c5827d |
------------
|
|
Karsten Hopp |
c5827d |
|
|
Karsten Hopp |
c5827d |
Patch 7.0.142
|
|
Karsten Hopp |
c5827d |
Problem: Using the middle mouse button in Select mode to paste text results
|
|
Karsten Hopp |
c5827d |
in an extra "y". (Kriton Kyrimis)
|
|
Karsten Hopp |
c5827d |
Solution: Let the middle mouse button replace the selected text with the
|
|
Karsten Hopp |
c5827d |
contents of the clipboard.
|
|
Karsten Hopp |
c5827d |
Files: src/normal.c
|
|
Karsten Hopp |
c5827d |
|
|
Karsten Hopp |
c5827d |
|
|
Karsten Hopp |
c5827d |
*** ../vim-7.0.141/src/normal.c Tue Oct 10 13:27:30 2006
|
|
Karsten Hopp |
c5827d |
--- src/normal.c Tue Oct 17 16:54:57 2006
|
|
Karsten Hopp |
c5827d |
***************
|
|
Karsten Hopp |
c5827d |
*** 2380,2390 ****
|
|
Karsten Hopp |
c5827d |
/*
|
|
Karsten Hopp |
c5827d |
* If visual was active, yank the highlighted text and put it
|
|
Karsten Hopp |
c5827d |
* before the mouse pointer position.
|
|
Karsten Hopp |
c5827d |
*/
|
|
Karsten Hopp |
c5827d |
if (VIsual_active)
|
|
Karsten Hopp |
c5827d |
{
|
|
Karsten Hopp |
c5827d |
! stuffcharReadbuff('y');
|
|
Karsten Hopp |
c5827d |
! stuffcharReadbuff(K_MIDDLEMOUSE);
|
|
Karsten Hopp |
c5827d |
do_always = TRUE; /* ignore 'mouse' setting next time */
|
|
Karsten Hopp |
c5827d |
return FALSE;
|
|
Karsten Hopp |
c5827d |
}
|
|
Karsten Hopp |
c5827d |
--- 2380,2399 ----
|
|
Karsten Hopp |
c5827d |
/*
|
|
Karsten Hopp |
c5827d |
* If visual was active, yank the highlighted text and put it
|
|
Karsten Hopp |
c5827d |
* before the mouse pointer position.
|
|
Karsten Hopp |
c5827d |
+ * In Select mode replace the highlighted text with the clipboard.
|
|
Karsten Hopp |
c5827d |
*/
|
|
Karsten Hopp |
c5827d |
if (VIsual_active)
|
|
Karsten Hopp |
c5827d |
{
|
|
Karsten Hopp |
c5827d |
! if (VIsual_select)
|
|
Karsten Hopp |
c5827d |
! {
|
|
Karsten Hopp |
c5827d |
! stuffcharReadbuff(Ctrl_G);
|
|
Karsten Hopp |
c5827d |
! stuffReadbuff("\"+p");
|
|
Karsten Hopp |
c5827d |
! }
|
|
Karsten Hopp |
c5827d |
! else
|
|
Karsten Hopp |
c5827d |
! {
|
|
Karsten Hopp |
c5827d |
! stuffcharReadbuff('y');
|
|
Karsten Hopp |
c5827d |
! stuffcharReadbuff(K_MIDDLEMOUSE);
|
|
Karsten Hopp |
c5827d |
! }
|
|
Karsten Hopp |
c5827d |
do_always = TRUE; /* ignore 'mouse' setting next time */
|
|
Karsten Hopp |
c5827d |
return FALSE;
|
|
Karsten Hopp |
c5827d |
}
|
|
Karsten Hopp |
c5827d |
*** ../vim-7.0.141/src/version.c Tue Oct 17 16:26:52 2006
|
|
Karsten Hopp |
c5827d |
--- src/version.c Tue Oct 17 16:51:23 2006
|
|
Karsten Hopp |
c5827d |
***************
|
|
Karsten Hopp |
c5827d |
*** 668,669 ****
|
|
Karsten Hopp |
c5827d |
--- 668,671 ----
|
|
Karsten Hopp |
c5827d |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
c5827d |
+ /**/
|
|
Karsten Hopp |
c5827d |
+ 142,
|
|
Karsten Hopp |
c5827d |
/**/
|
|
Karsten Hopp |
c5827d |
|
|
Karsten Hopp |
c5827d |
--
|
|
Karsten Hopp |
c5827d |
Keyboard not found. Think ENTER to continue.
|
|
Karsten Hopp |
c5827d |
|
|
Karsten Hopp |
c5827d |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
c5827d |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
c5827d |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
c5827d |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|