summaryrefslogtreecommitdiffstats
path: root/src/testdir/term_util.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-05-11 22:04:53 +0200
committerBram Moolenaar <Bram@vim.org>2020-05-11 22:04:53 +0200
commit91689ea8ae01acb3daf8ba0ee91acd729af7c84c (patch)
tree639904b847bb756cb8bc423b19bdf5b40e886606 /src/testdir/term_util.vim
parent5c3128efe6bc48cbd88da23973db389ad3b8ab63 (diff)
patch 8.2.0738: mouse handling in a terminal window not well testedv8.2.0738
Problem: Mouse handling in a terminal window not well tested. Solution: Add tests. (Yegappan Lakshmanan, closes #6052)
Diffstat (limited to 'src/testdir/term_util.vim')
-rw-r--r--src/testdir/term_util.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testdir/term_util.vim b/src/testdir/term_util.vim
index 715a4ac760..2d66f38a58 100644
--- a/src/testdir/term_util.vim
+++ b/src/testdir/term_util.vim
@@ -127,6 +127,9 @@ func StopVimInTerminal(buf)
" In Command-line it's inserted, the CTRL-U removes it again.
call term_sendkeys(a:buf, "\<C-O>:\<C-U>qa!\<cr>")
+ " Wait for all the pending updates to terminal to complete
+ call TermWait(a:buf)
+
call WaitForAssert({-> assert_equal("finished", term_getstatus(a:buf))})
only!
endfunc