Skip to content

Commit c9262f4

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 5cba1fc + fc7649f commit c9262f4

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

src/libvterm/src/vterm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

src/testdir/test_terminal.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ func Stop_shell_in_terminal(buf)
3434
endfunc
3535

3636
func 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
5862
endfunc
5963

src/version.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -776,6 +776,10 @@ static char *(features[]) =
776776

777777
static int included_patches[] =
778778
{ /* Add new patch number below this line */
779+
/**/
780+
1132,
781+
/**/
782+
1131,
779783
/**/
780784
1130,
781785
/**/

0 commit comments

Comments
 (0)