aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-04-28 14:23:37 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-04-28 16:42:26 +0800
commit2a84e20ff50073a88899ea5a6a8ec6a9cb8d6fc7 (patch)
treeedb55fdd940de097d477b7461ce0e21263e7d876 /test
parentf6f96c972a3d79255be5cbed6706103a52d8d419 (diff)
downloadrneovim-2a84e20ff50073a88899ea5a6a8ec6a9cb8d6fc7.tar.gz
rneovim-2a84e20ff50073a88899ea5a6a8ec6a9cb8d6fc7.tar.bz2
rneovim-2a84e20ff50073a88899ea5a6a8ec6a9cb8d6fc7.zip
vim-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. https://github.com/vim/vim/commit/564344ace9ef06b22e4e60a0196c41b410ac27da Use CheckFeature clipboard_working from latest test instead. Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test')
-rw-r--r--test/old/testdir/test_termcodes.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/old/testdir/test_termcodes.vim b/test/old/testdir/test_termcodes.vim
index d18197e65e..b94a4b80eb 100644
--- a/test/old/testdir/test_termcodes.vim
+++ b/test/old/testdir/test_termcodes.vim
@@ -35,6 +35,8 @@ func Test_xterm_mouse_left_click()
endfunc
func Test_xterm_mouse_middle_click()
+ CheckFeature clipboard_working
+
new
let save_mouse = &mouse
let save_term = &term