aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-04-28 14:00:07 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-04-28 16:42:26 +0800
commit718a8862ab6a19dd1688116623b197a9ce431da8 (patch)
treeb8a84b8a075750ca0ecbaba617c670caf1fae32f
parenta44c8a3783014cc14066f46b1d9a15b0ccb08d8f (diff)
downloadrneovim-718a8862ab6a19dd1688116623b197a9ce431da8.tar.gz
rneovim-718a8862ab6a19dd1688116623b197a9ce431da8.tar.bz2
rneovim-718a8862ab6a19dd1688116623b197a9ce431da8.zip
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>
-rw-r--r--test/old/testdir/test_termcodes.vim12
1 files changed, 12 insertions, 0 deletions
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)