1
0
forked from aniani/vim

patch 8.0.1095: terminal multibyte escrape test is flaky

Problem:    Terminal multibyte escrape test is flaky.
Solution:   Add another condition to wait for.
This commit is contained in:
Bram Moolenaar
2017-09-11 20:45:23 +02:00
parent c212798333
commit a038cb5eab
2 changed files with 3 additions and 1 deletions

View File

@@ -197,7 +197,7 @@ func Test_terminal_scrape_multibyte()
let g:line = 1 let g:line = 1
endif endif
call WaitFor('term_scrape(g:buf, g:line)[0].chars == "l"') call WaitFor('len(term_scrape(g:buf, g:line)) >= 7 && term_scrape(g:buf, g:line)[0].chars == "l"')
let l = term_scrape(g:buf, g:line) let l = term_scrape(g:buf, g:line)
call assert_true(len(l) >= 7) call assert_true(len(l) >= 7)
call assert_equal('l', l[0].chars) call assert_equal('l', l[0].chars)

View File

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