0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.1223: middle mouse click test fails without a clipboard

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.
This commit is contained in:
Bram Moolenaar
2019-04-28 13:00:12 +02:00
parent dcaa54dded
commit 564344ace9
3 changed files with 10 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
" *-register (quotestar) tests
if !has('clipboard')
source shared.vim
if !WorkingClipboard()
finish
endif

View 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

View File

@@ -767,6 +767,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1223,
/**/
1222,
/**/