return
endif
call assert_equal(1, winnr('$'))
+ set title
" Use the title termcap entries to output the escape sequence.
call writefile([
call StopVimInTerminal(buf)
call delete('Xscript')
bwipe Xtextfile
+ set title&
endfunc
func Test_terminal_api_drop_oldwin()
let textfile_winid = win_getid()
call assert_equal(2, winnr('$'))
call win_gotoid(firstwinid)
+ set title
" Use the title termcap entries to output the escape sequence.
call writefile([
call StopVimInTerminal(buf)
call delete('Xscript')
bwipe Xtextfile
+ set title&
endfunc
func TryThis(bufnum, arg)
if !CanRunVimInTerminal()
return
endif
+ set title
+
" Use the title termcap entries to output the escape sequence.
call writefile([
\ 'exe "set t_ts=\<Esc>]51; t_fs=\x07"',
call delete('Xscript')
unlet g:called_bufnum
unlet g:called_arg
+ set title&
endfunc