# HG changeset patch # User Bram Moolenaar # Date 1555098306 -7200 # Node ID 5b8b849dc3aac320180a35f2697bf38f24ed4fdd # Parent f21de4c36152d1913ce418d9b232d13658dbcc92 patch 8.1.1160: termcodes test would fail in a very big terminal commit https://github.com/vim/vim/commit/c8b3ddab51cd2901d5946949d02c96e1035b25c0 Author: Bram Moolenaar 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) diff --git a/src/testdir/test_termcodes.vim b/src/testdir/test_termcodes.vim --- 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) diff --git a/src/version.c b/src/version.c --- 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,