summaryrefslogtreecommitdiff
path: root/src/testdir/test_termcodes.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-03-23 19:28:44 +0100
committerBram Moolenaar <Bram@vim.org>2020-03-23 19:28:44 +0100
commitab505b1a4868b3e21356f95a275537551700c955 (patch)
tree82613faf8fb01c0c23f6d1be687d2fe01d003474 /src/testdir/test_termcodes.vim
parent56ba21a156c723d92a1929e2c500be7295efb0a8 (diff)
downloadvim-git-ab505b1a4868b3e21356f95a275537551700c955.tar.gz
patch 8.2.0432: a few tests fail in a huge terminalv8.2.0432
Problem: A few tests fail in a huge terminal. Solution: Make the tests pass. (Dominique Pelle, closes #5829)
Diffstat (limited to 'src/testdir/test_termcodes.vim')
-rw-r--r--src/testdir/test_termcodes.vim22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/testdir/test_termcodes.vim b/src/testdir/test_termcodes.vim
index f27648eb5..13770c643 100644
--- a/src/testdir/test_termcodes.vim
+++ b/src/testdir/test_termcodes.vim
@@ -758,16 +758,20 @@ func Test_term_mouse_click_in_cmdline_to_set_pos()
let row = &lines
for ttymouse_val in g:Ttymouse_values + g:Ttymouse_dec
- let msg = 'ttymouse=' .. ttymouse_val
- exe 'set ttymouse=' .. ttymouse_val
+ " When 'ttymouse' is 'xterm2', row/col bigger than 223 are not supported.
+ if ttymouse_val !=# 'xterm2' || row <= 223
+ let msg = 'ttymouse=' .. ttymouse_val
+ exe 'set ttymouse=' .. ttymouse_val
- call feedkeys(':"3456789'
- \ .. MouseLeftClickCode(row, 7)
- \ .. MouseLeftReleaseCode(row, 7) .. 'L'
- \ .. MouseRightClickCode(row, 4)
- \ .. MouseRightReleaseCode(row, 4) .. 'R'
- \ .. "\<CR>", 'Lx!')
- call assert_equal('"3R456L789', @:, msg)
+
+ call feedkeys(':"3456789'
+ \ .. MouseLeftClickCode(row, 7)
+ \ .. MouseLeftReleaseCode(row, 7) .. 'L'
+ \ .. MouseRightClickCode(row, 4)
+ \ .. MouseRightReleaseCode(row, 4) .. 'R'
+ \ .. "\<CR>", 'Lx!')
+ call assert_equal('"3R456L789', @:, msg)
+ endif
endfor
let &mouse = save_mouse