1
0
forked from aniani/vim

patch 8.2.0738: mouse handling in a terminal window not well tested

Problem:    Mouse handling in a terminal window not well tested.
Solution:   Add tests. (Yegappan Lakshmanan, closes #6052)
This commit is contained in:
Bram Moolenaar
2020-05-11 22:04:53 +02:00
parent 5c3128efe6
commit 91689ea8ae
5 changed files with 270 additions and 22 deletions

View File

@@ -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