0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

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)
This commit is contained in:
Bram Moolenaar 2019-04-12 21:42:52 +02:00
parent a8d22e3a40
commit c8b3ddab51
2 changed files with 14 additions and 0 deletions

View 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)

View File

@ -771,6 +771,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1160,
/**/
1159,
/**/