From 718a8862ab6a19dd1688116623b197a9ce431da8 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 28 Apr 2023 14:00:07 +0800 Subject: [PATCH] vim-patch:8.1.1160: termcodes test would fail in a very big terminal Problem: Termcodes test would fail in a very big terminal. Solution: Bail out when the row is larger than what will work. (Dominique Pelle, closes vim/vim#4246) https://github.com/vim/vim/commit/c8b3ddab51cd2901d5946949d02c96e1035b25c0 Co-authored-by: Bram Moolenaar --- test/old/testdir/test_termcodes.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/old/testdir/test_termcodes.vim b/test/old/testdir/test_termcodes.vim index 8587659334..546c5c821c 100644 --- a/test/old/testdir/test_termcodes.vim +++ b/test/old/testdir/test_termcodes.vim @@ -86,6 +86,12 @@ func Test_xterm_mouse_drag_window_separator() let rowseparator = winheight(0) + 1 let row = rowseparator let col = 1 + + if ttymouse_val ==# 'xterm' && row > 223 + " When 'ttymouse' is 'xterm', row/col bigger than 223 are not supported. + continue + endif + call MouseLeftClick(row, col) let row -= 1 @@ -137,6 +143,12 @@ func Test_xterm_mouse_drag_statusline() let rowstatusline = winheight(0) + 1 let row = rowstatusline let col = 1 + + if ttymouse_val ==# 'xterm' && row > 223 + " When 'ttymouse' is 'xterm', row/col bigger than 223 are not supported. + continue + endif + call MouseLeftClick(row, col) let row -= 1 call MouseLeftDrag(row, col)