1
0
forked from aniani/vim

patch 8.0.0995: terminal tests fail on Mac

Problem:    Terminal tests fail on Mac.
Solution:   Add workaround: sleep a moment in between sending keys.
This commit is contained in:
Bram Moolenaar
2017-08-25 23:22:05 +02:00
parent be0b72977f
commit 753289f9bf
2 changed files with 7 additions and 0 deletions

View File

@@ -456,6 +456,11 @@ func Test_terminal_noblock()
for c in ['a','b','c','d','e','f','g','h','i','j','k'] for c in ['a','b','c','d','e','f','g','h','i','j','k']
call term_sendkeys(g:buf, 'echo ' . repeat(c, 5000) . "\<cr>") call term_sendkeys(g:buf, 'echo ' . repeat(c, 5000) . "\<cr>")
if has('mac')
" TODO: this should not be needed, but without it sending keys blocks
" after 8000 chars or so.
sleep 100m
endif
endfor endfor
call term_sendkeys(g:buf, "echo done\<cr>") call term_sendkeys(g:buf, "echo done\<cr>")

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 */
/**/
995,
/**/ /**/
994, 994,
/**/ /**/