0
0
mirror of https://github.com/vim/vim.git synced 2025-08-22 19:27:53 -04:00

patch 8.0.1049: shell on Mac can't handle long text

Problem:    Shell on Mac can't handle long text, making terminal test fail.
Solution:   Only write 1000 characters instead of 5000.
This commit is contained in:
Bram Moolenaar 2017-09-03 18:08:00 +02:00
parent 5e80de3f3e
commit d8d85bfb7d
2 changed files with 10 additions and 6 deletions

View File

@ -458,14 +458,16 @@ endfunction
func Test_terminal_noblock()
let g:buf = term_start(&shell)
if has('mac')
" The shell or something else has a problem dealing with more than 1000
" characters at the same time.
let len = 1000
else
let len = 5000
endif
for c in ['a','b','c','d','e','f','g','h','i','j','k']
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
call term_sendkeys(g:buf, 'echo ' . repeat(c, len) . "\<cr>")
endfor
call term_sendkeys(g:buf, "echo done\<cr>")

View File

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