patch 8.2.2647: terminal test sometimes hangs
Problem: Terminal test sometimes hangs.
Solution: Wait for the shell to display a prompt.
diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim
index 3def03d..a82ad8c 100644
--- a/src/testdir/test_terminal.vim
+++ b/src/testdir/test_terminal.vim
@@ -889,6 +889,8 @@
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
diff --git a/src/version.c b/src/version.c
index b8b5d58..750db2e 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2647,
+/**/
2646,
/**/
2645,