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:
@@ -1,6 +1,7 @@
|
|||||||
" *-register (quotestar) tests
|
" *-register (quotestar) tests
|
||||||
|
|
||||||
if !has('clipboard')
|
source shared.vim
|
||||||
|
if !WorkingClipboard()
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@@ -5,6 +5,8 @@ if has('gui_running') || !has('unix')
|
|||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
source shared.vim
|
||||||
|
|
||||||
" Helper function to emit a terminal escape code.
|
" Helper function to emit a terminal escape code.
|
||||||
func TerminalEscapeCode(code_xterm, code_sgr, row, col, m)
|
func TerminalEscapeCode(code_xterm, code_sgr, row, col, m)
|
||||||
if &ttymouse ==# 'xterm2'
|
if &ttymouse ==# 'xterm2'
|
||||||
@@ -77,6 +79,10 @@ func Test_xterm_mouse_left_click()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_xterm_mouse_middle_click()
|
func Test_xterm_mouse_middle_click()
|
||||||
|
if !WorkingClipboard()
|
||||||
|
throw 'Skipped: No working clipboard'
|
||||||
|
endif
|
||||||
|
|
||||||
new
|
new
|
||||||
let save_mouse = &mouse
|
let save_mouse = &mouse
|
||||||
let save_term = &term
|
let save_term = &term
|
||||||
|
@@ -767,6 +767,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1223,
|
||||||
/**/
|
/**/
|
||||||
1222,
|
1222,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user