diff src/testdir/test_termcodes.vim @ 16310:5b8b849dc3aa v8.1.1160

patch 8.1.1160: termcodes test would fail in a very big terminal commit https://github.com/vim/vim/commit/c8b3ddab51cd2901d5946949d02c96e1035b25c0 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Apr 12 21:42:52 2019 +0200 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 #4246)
author Bram Moolenaar <Bram@vim.org>
date Fri, 12 Apr 2019 21:45:06 +0200
parents f3d579f009d1
children 57e0f6b4a87d
line wrap: on
line diff
--- a/src/testdir/test_termcodes.vim
+++ b/src/testdir/test_termcodes.vim
@@ -118,6 +118,12 @@ func Test_xterm_mouse_drag_window_separa
     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
@@ -168,6 +174,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)