summaryrefslogtreecommitdiffstats
path: root/src/testdir/screendump.vim
diff options
context:
space:
mode:
Diffstat (limited to 'src/testdir/screendump.vim')
-rw-r--r--src/testdir/screendump.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testdir/screendump.vim b/src/testdir/screendump.vim
index 8ea708a39f..8fc496d1e1 100644
--- a/src/testdir/screendump.vim
+++ b/src/testdir/screendump.vim
@@ -27,6 +27,9 @@ func VerifyScreenDump(buf, filename, options, ...)
" Starting a terminal to make a screendump is always considered flaky.
let g:test_is_flaky = 1
+ " wait for the pending updates to be handled.
+ call TermWait(a:buf)
+
" Redraw to execute the code that updates the screen. Otherwise we get the
" text and attributes only from the internal buffer.
redraw