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

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