]> granicus.if.org Git - vim/commitdiff
patch 8.1.1160: termcodes test would fail in a very big terminal v8.1.1160
authorBram Moolenaar <Bram@vim.org>
Fri, 12 Apr 2019 19:42:52 +0000 (21:42 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 12 Apr 2019 19:42:52 +0000 (21:42 +0200)
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)

src/testdir/test_termcodes.vim
src/version.c

index 633e0216f4e2132c1692849215361bb01e3b7b8f..949fa94814ccf16317f44919a358f924ddb6986c 100644 (file)
@@ -118,6 +118,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
@@ -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)
index 46341eeb2d667c58babf3dcc42df97eb7c755b9a..81f0420b931905d55d0f03830d4b74023715b1d4 100644 (file)
@@ -771,6 +771,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1160,
 /**/
     1159,
 /**/