From 2a84e20ff50073a88899ea5a6a8ec6a9cb8d6fc7 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 28 Apr 2023 14:23:37 +0800 Subject: 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 --- test/old/testdir/test_termcodes.vim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') 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 -- cgit