changeset 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 f21de4c36152
children 94ca56fd6b64
files src/testdir/test_termcodes.vim src/version.c
diffstat 2 files changed, 14 insertions(+), 0 deletions(-) [+]
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)
--- a/src/version.c
+++ b/src/version.c
@@ -772,6 +772,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1160,
+/**/
     1159,
 /**/
     1158,