0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

updated for version 7.0-142

This commit is contained in:
Bram Moolenaar 2006-10-17 14:54:03 +00:00
parent 1769d5a8c9
commit a350f4a54f
2 changed files with 13 additions and 2 deletions

View File

@ -2380,11 +2380,20 @@ do_mouse(oap, c, dir, count, fixindent)
/*
* If visual was active, yank the highlighted text and put it
* before the mouse pointer position.
* In Select mode replace the highlighted text with the clipboard.
*/
if (VIsual_active)
{
stuffcharReadbuff('y');
stuffcharReadbuff(K_MIDDLEMOUSE);
if (VIsual_select)
{
stuffcharReadbuff(Ctrl_G);
stuffReadbuff("\"+p");
}
else
{
stuffcharReadbuff('y');
stuffcharReadbuff(K_MIDDLEMOUSE);
}
do_always = TRUE; /* ignore 'mouse' setting next time */
return FALSE;
}

View File

@ -666,6 +666,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
142,
/**/
141,
/**/