patch 8.0.1721: no test for using the 'termsize' option
Problem: No test for using the 'termsize' option.
Solution: Add a test.
diff --git a/src/testdir/screendump.vim b/src/testdir/screendump.vim
index 9812e7e..af9e371 100644
--- a/src/testdir/screendump.vim
+++ b/src/testdir/screendump.vim
@@ -57,7 +57,12 @@
" 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).