mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-05-28 00:21:57 +02:00
Merge remote-tracking branch 'vim/master'
This commit is contained in:
@@ -130,7 +130,8 @@ static int outbuffer_is_full(VTerm *vt)
|
||||
return vt->outbuffer_cur >= vt->outbuffer_len - 1;
|
||||
}
|
||||
|
||||
#if _XOPEN_SOURCE >= 500 || _ISOC99_SOURCE || _BSD_SOURCE
|
||||
#if (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >= 500) \
|
||||
|| defined(_ISOC99_SOURCE) || defined(_BSD_SOURCE)
|
||||
# undef VSNPRINTF
|
||||
# define VSNPRINTF vsnprintf
|
||||
#else
|
||||
|
||||
@@ -34,7 +34,9 @@ func Stop_shell_in_terminal(buf)
|
||||
endfunc
|
||||
|
||||
func Test_terminal_basic()
|
||||
au BufWinEnter * if &buftype == 'terminal' | let b:done = 'yes' | endif
|
||||
let buf = Run_shell_in_terminal({})
|
||||
|
||||
if has("unix")
|
||||
call assert_match('^/dev/', job_info(g:job).tty_out)
|
||||
call assert_match('^/dev/', term_gettty(''))
|
||||
@@ -43,6 +45,7 @@ func Test_terminal_basic()
|
||||
call assert_match('^\\\\.\\pipe\\', term_gettty(''))
|
||||
endif
|
||||
call assert_equal('t', mode())
|
||||
call assert_equal('yes', b:done)
|
||||
call assert_match('%aR[^\n]*running]', execute('ls'))
|
||||
|
||||
call Stop_shell_in_terminal(buf)
|
||||
@@ -54,6 +57,7 @@ func Test_terminal_basic()
|
||||
close
|
||||
call assert_equal("", bufname(buf))
|
||||
|
||||
au! BufWinEnter
|
||||
unlet g:job
|
||||
endfunc
|
||||
|
||||
|
||||
@@ -776,6 +776,10 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1132,
|
||||
/**/
|
||||
1131,
|
||||
/**/
|
||||
1130,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user