commit 718a8862ab6a19dd1688116623b197a9ce431da8
parent a44c8a3783014cc14066f46b1d9a15b0ccb08d8f
Author: zeertzjq <zeertzjq@outlook.com>
Date: Fri, 28 Apr 2023 14:00:07 +0800
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 <Bram@vim.org>
Diffstat:
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git 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)