mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-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 vim/vim#4246)
c8b3ddab51
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
parent
a44c8a3783
commit
718a8862ab
@ -86,6 +86,12 @@ func Test_xterm_mouse_drag_window_separator()
|
|||||||
let rowseparator = winheight(0) + 1
|
let rowseparator = winheight(0) + 1
|
||||||
let row = rowseparator
|
let row = rowseparator
|
||||||
let col = 1
|
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)
|
call MouseLeftClick(row, col)
|
||||||
|
|
||||||
let row -= 1
|
let row -= 1
|
||||||
@ -137,6 +143,12 @@ func Test_xterm_mouse_drag_statusline()
|
|||||||
let rowstatusline = winheight(0) + 1
|
let rowstatusline = winheight(0) + 1
|
||||||
let row = rowstatusline
|
let row = rowstatusline
|
||||||
let col = 1
|
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)
|
call MouseLeftClick(row, col)
|
||||||
let row -= 1
|
let row -= 1
|
||||||
call MouseLeftDrag(row, col)
|
call MouseLeftDrag(row, col)
|
||||||
|
Loading…
Reference in New Issue
Block a user