updated for version 7.0-142
diff --git a/src/normal.c b/src/normal.c
index 174570c..dd2e0b3 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -2380,11 +2380,20 @@
/*
* 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;
}
diff --git a/src/version.c b/src/version.c
index ff01a2b..3bd726d 100644
--- a/src/version.c
+++ b/src/version.c
@@ -667,6 +667,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 142,
+/**/
141,
/**/
140,