Blame SOURCES/vim-8.0-copy-paste.patch

44ca1a
diff --git a/runtime/defaults.vim b/runtime/defaults.vim
44ca1a
index f3c639b..20637e2 100644
44ca1a
--- a/runtime/defaults.vim
44ca1a
+++ b/runtime/defaults.vim
20b5ab
@@ -73,18 +73,6 @@ map Q gq
20b5ab
 " Revert with ":iunmap <C-U>".
20b5ab
 inoremap <C-U> <C-G>u<C-U>
20b5ab
 
20b5ab
-" In many terminal emulators the mouse works just fine.  By enabling it you
20b5ab
-" can position the cursor, Visually select and scroll with the mouse.
20b5ab
-" Only xterm can grab the mouse events when using the shift key, for other
20b5ab
-" terminals use ":", select text and press Esc.
20b5ab
-if has('mouse')
20b5ab
-  if &term =~ 'xterm'
20b5ab
-    set mouse=a
20b5ab
-  else
20b5ab
-    set mouse=nvi
20b5ab
-  endif
20b5ab
-endif
20b5ab
-
20b5ab
 " Only do this part when Vim was compiled with the +eval feature.
20b5ab
 if 1
20b5ab
 
44ca1a
diff --git a/src/testdir/test_balloon.vim b/src/testdir/test_balloon.vim
44ca1a
index 319e546..8fcf63c 100644
44ca1a
--- a/src/testdir/test_balloon.vim
44ca1a
+++ b/src/testdir/test_balloon.vim
44ca1a
@@ -9,6 +9,7 @@ source screendump.vim
44ca1a
 CheckScreendump
44ca1a
 
44ca1a
 let s:common_script =<< trim [CODE]
44ca1a
+  set mouse=a
44ca1a
   call setline(1, ["one one one", "two tXo two", "three three three"])
44ca1a
   set balloonevalterm balloonexpr=MyBalloonExpr() balloondelay=100
44ca1a
   func MyBalloonExpr()
44ca1a
diff --git a/src/testdir/test_popupwin.vim b/src/testdir/test_popupwin.vim
44ca1a
index f13252b..ec755a4 100644
44ca1a
--- a/src/testdir/test_popupwin.vim
44ca1a
+++ b/src/testdir/test_popupwin.vim
44ca1a
@@ -553,6 +553,7 @@ func Test_popup_drag()
44ca1a
   " create a popup that covers the command line
44ca1a
   let lines =<< trim END
44ca1a
 	call setline(1, range(1, 20))
44ca1a
+	set mouse=a
44ca1a
 	split
44ca1a
 	vsplit
44ca1a
 	$wincmd w
44ca1a
@@ -599,6 +600,7 @@ func Test_popup_drag_termwin()
44ca1a
   let lines =<< trim END
44ca1a
 	set foldmethod=marker
44ca1a
 	call setline(1, range(100))
44ca1a
+  set mouse=a
44ca1a
 	for nr in range(7)
44ca1a
 	  call setline(nr * 12 + 1, "fold {{{")
44ca1a
 	  call setline(nr * 12 + 11, "end }}}")
44ca1a
@@ -652,6 +654,7 @@ func Test_popup_close_with_mouse()
44ca1a
 
44ca1a
   let lines =<< trim END
44ca1a
 	call setline(1, range(1, 20))
44ca1a
+	set mouse=a
44ca1a
 	" With border, can click on X
44ca1a
 	let winid = popup_create('foobar', #{
44ca1a
 	      \ close: 'button',
44ca1a
@@ -1479,6 +1482,7 @@ func Test_popup_beval()
44ca1a
   let lines =<< trim END
44ca1a
 	call setline(1, range(1, 20))
44ca1a
 	call setline(5, 'here is some text to hover over')
44ca1a
+	set mouse=a
44ca1a
 	set balloonevalterm
44ca1a
 	set balloonexpr=BalloonExpr()
44ca1a
 	set balloondelay=100
44ca1a
@@ -2170,6 +2174,7 @@ func Test_popup_scrollbar()
44ca1a
 
44ca1a
   let lines =<< trim END
44ca1a
     call setline(1, range(1, 20))
44ca1a
+    set mouse=a
44ca1a
     hi ScrollThumb ctermbg=blue
44ca1a
     hi ScrollBar ctermbg=red
44ca1a
     let winid = popup_create(['one', 'two', 'three', 'four', 'five',