0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.2.2647: terminal test sometimes hangs

Problem:    Terminal test sometimes hangs.
Solution:   Wait for the shell to display a prompt.
This commit is contained in:
Bram Moolenaar 2021-03-23 16:25:09 +01:00
parent f28f2ac425
commit f4a2ed0714
2 changed files with 4 additions and 0 deletions

View File

@ -889,6 +889,8 @@ endfunc
func TerminalTmap(remap)
let buf = Run_shell_in_terminal({})
" Wait for the shell to display a prompt
call WaitForAssert({-> assert_notequal('', term_getline(buf, 1))})
call assert_equal('t', mode())
if a:remap

View File

@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2647,
/**/
2646,
/**/