File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,8 @@ static int outbuffer_is_full(VTerm *vt)
130130 return vt -> outbuffer_cur >= vt -> outbuffer_len - 1 ;
131131}
132132
133- #if _XOPEN_SOURCE >= 500 || _ISOC99_SOURCE || _BSD_SOURCE
133+ #if (defined(_XOPEN_SOURCE ) && _XOPEN_SOURCE >= 500 ) \
134+ || defined(_ISOC99_SOURCE ) || defined(_BSD_SOURCE )
134135# undef VSNPRINTF
135136# define VSNPRINTF vsnprintf
136137#else
Original file line number Diff line number Diff line change @@ -34,7 +34,9 @@ func Stop_shell_in_terminal(buf)
3434endfunc
3535
3636func Test_terminal_basic ()
37+ au BufWinEnter * if &buftype == ' terminal' | let b: done = ' yes' | endif
3738 let buf = Run_shell_in_terminal ({})
39+
3840 if has (" unix" )
3941 call assert_match (' ^/dev/' , job_info (g: job ).tty_out)
4042 call assert_match (' ^/dev/' , term_gettty (' ' ))
@@ -43,6 +45,7 @@ func Test_terminal_basic()
4345 call assert_match (' ^\\\\.\\pipe\\' , term_gettty (' ' ))
4446 endif
4547 call assert_equal (' t' , mode ())
48+ call assert_equal (' yes' , b: done )
4649 call assert_match (' %aR[^\n]*running]' , execute (' ls' ))
4750
4851 call Stop_shell_in_terminal (buf )
@@ -54,6 +57,7 @@ func Test_terminal_basic()
5457 close
5558 call assert_equal (" " , bufname (buf ))
5659
60+ au ! BufWinEnter
5761 unlet g: job
5862endfunc
5963
Original file line number Diff line number Diff line change @@ -776,6 +776,10 @@ static char *(features[]) =
776776
777777static int included_patches [] =
778778{ /* Add new patch number below this line */
779+ /**/
780+ 1132 ,
781+ /**/
782+ 1131 ,
779783/**/
780784 1130 ,
781785/**/
You can’t perform that action at this time.
0 commit comments