summaryrefslogtreecommitdiffstats
path: root/src/testdir/screendump.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-27 16:55:47 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-27 16:55:47 +0100
commite40b9d47bf8f8f716d3ef5a95c8ecbbdc0a501f9 (patch)
tree7891a85cc4c4d8f9c173309dfdf7e870777a8046 /src/testdir/screendump.vim
parentd93090f41f70c521cfad5b25efcb0024b9480082 (diff)
patch 8.1.0834: GUI may wait too long before dealing with messagesv8.1.0834
Problem: GUI may wait too long before dealing with messages. Returning early may cause a mapping to time out. Solution: Use the waiting loop from Unix also for the GUI. (closes #3817, closes #3824)
Diffstat (limited to 'src/testdir/screendump.vim')
-rw-r--r--src/testdir/screendump.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testdir/screendump.vim b/src/testdir/screendump.vim
index 139f708c07..b46a477b73 100644
--- a/src/testdir/screendump.vim
+++ b/src/testdir/screendump.vim
@@ -58,6 +58,10 @@ func RunVimInTerminal(arguments, options)
let cmd .= ' -v ' . a:arguments
let buf = term_start(cmd, {'curwin': 1, 'term_rows': rows, 'term_cols': cols})
if &termwinsize == ''
+ " in the GUI we may end up with a different size, try to set it.
+ if term_getsize(buf) != [rows, cols]
+ call term_setsize(buf, rows, cols)
+ endif
call assert_equal([rows, cols], term_getsize(buf))
else
let rows = term_getsize(buf)[0]