Skip to content

Commit 1514e8f

Browse files
committed
patch 8.0.1116: terminal test fails on MS-Windows
Problem: Terminal test fails on MS-Windows. Solution: Wait for the text to appear. (micbou, closes #2097)
1 parent 495b7dd commit 1514e8f

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/testdir/test_terminal.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,8 @@ func TerminalTmap(remap)
634634
call assert_equal('456', maparg('123', 't'))
635635
call assert_equal('abcde', maparg('456', 't'))
636636
call feedkeys("123", 'tx')
637-
call term_wait(buf)
637+
let g:buf = buf
638+
call WaitFor("term_getline(g:buf,term_getcursor(g:buf)[0]) =~ 'abcde\\|456'")
638639
let lnum = term_getcursor(buf)[0]
639640
if a:remap
640641
call assert_match('abcde', term_getline(buf, lnum))

src/version.c

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

770770
static int included_patches[] =
771771
{ /* Add new patch number below this line */
772+
/**/
773+
1116,
772774
/**/
773775
1115,
774776
/**/

0 commit comments

Comments
 (0)