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.
" *-register (quotestar) tests
-if !has('clipboard')
+source shared.vim
+if !WorkingClipboard()
finish
endif
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'
endfunc
func Test_xterm_mouse_middle_click()
+ if !WorkingClipboard()
+ throw 'Skipped: No working clipboard'
+ endif
+
new
let save_mouse = &mouse
let save_term = &term
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1223,
/**/
1222,
/**/