summaryrefslogtreecommitdiffstats
path: root/src/testdir/screendump.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-04-15 22:25:54 +0200
committerBram Moolenaar <Bram@vim.org>2018-04-15 22:25:54 +0200
commita7eef3d87fa36d527d1cfc749b400df1e69dcb3d (patch)
tree1551696e4b917369d011cfb30d67fc24688439e3 /src/testdir/screendump.vim
parent802bfb14636b24d86d0ca8e0947d808b9b7c941e (diff)
patch 8.0.1721: no test for using the 'termsize' optionv8.0.1721
Problem: No test for using the 'termsize' option. Solution: Add a test.
Diffstat (limited to 'src/testdir/screendump.vim')
-rw-r--r--src/testdir/screendump.vim7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/testdir/screendump.vim b/src/testdir/screendump.vim
index 9812e7e6de..af9e371488 100644
--- a/src/testdir/screendump.vim
+++ b/src/testdir/screendump.vim
@@ -57,7 +57,12 @@ func RunVimInTerminal(arguments, options)
" Add -v to have gvim run in the terminal (if possible)
let cmd .= ' -v ' . a:arguments
let buf = term_start(cmd, {'curwin': 1, 'term_rows': rows, 'term_cols': cols})
- call assert_equal([rows, cols], term_getsize(buf))
+ if &termsize == ''
+ call assert_equal([rows, cols], term_getsize(buf))
+ else
+ let rows = term_getsize(buf)[0]
+ let cols = term_getsize(buf)[1]
+ endif
" Wait for "All" of the ruler in the status line to be shown.
" This can be quite slow (e.g. when using valgrind).