Skip to content

Commit f4a2ed0

Browse files
committed
patch 8.2.2647: terminal test sometimes hangs
Problem: Terminal test sometimes hangs. Solution: Wait for the shell to display a prompt.
1 parent f28f2ac commit f4a2ed0

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/testdir/test_terminal.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -889,6 +889,8 @@ endfunc
889889

890890
func TerminalTmap(remap)
891891
let buf = Run_shell_in_terminal({})
892+
" Wait for the shell to display a prompt
893+
call WaitForAssert({-> assert_notequal('', term_getline(buf, 1))})
892894
call assert_equal('t', mode())
893895

894896
if a:remap

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2647,
753755
/**/
754756
2646,
755757
/**/

0 commit comments

Comments
 (0)