]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.1.1223: middle mouse click test fails without a clipboard v8.1.1223
authorBram Moolenaar <Bram@vim.org>
Sun, 28 Apr 2019 11:00:12 +0000 (13:00 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 28 Apr 2019 11:00:12 +0000 (13:00 +0200)
Problem:    Middle mouse click test fails without a clipboard.
Solution:   Check if the clipboard can be used. (Dominique Pelle, Christian
            Brabandt)  Also use WorkingClipboard() instead of checking for the
            "clipboard" feature.

src/testdir/test_quotestar.vim
src/testdir/test_termcodes.vim
src/version.c

index c7e38aef6b0b565e230f823990158f67fa33dd28..1334201a7eeca9c208d8963f8b2ad95232d10f4e 100644 (file)
@@ -1,6 +1,7 @@
 " *-register (quotestar) tests
 
-if !has('clipboard')
+source shared.vim
+if !WorkingClipboard()
   finish
 endif
 
index af10e1d5c3740e8c0369510167923f71d31425ca..2862a6a553e4ab84b6663dabb466edcfbe82c265 100644 (file)
@@ -5,6 +5,8 @@ if has('gui_running') || !has('unix')
   finish
 endif
 
+source shared.vim
+
 " Helper function to emit a terminal escape code.
 func TerminalEscapeCode(code_xterm, code_sgr, row, col, m)
   if &ttymouse ==# 'xterm2'
@@ -77,6 +79,10 @@ func Test_xterm_mouse_left_click()
 endfunc
 
 func Test_xterm_mouse_middle_click()
+  if !WorkingClipboard()
+    throw 'Skipped: No working clipboard'
+  endif
+
   new
   let save_mouse = &mouse
   let save_term = &term
index 1bdcaaf0a39048040ff07187848a2f3b3df9534c..fdbb9a63bc585e14820ddbd52308cdca18dbdf2a 100644 (file)
@@ -767,6 +767,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1223,
 /**/
     1222,
 /**/