# HG changeset patch # User Christian Brabandt # Date 1521998105 -7200 # Node ID 5f543bce50e83f17ff0819dbd4920c243c5135a8 # Parent 2bc543b10a516d2ec8d7751b2ec3e995e4da2a62 patch 8.0.1643: terminal API tests fail commit https://github.com/vim/vim/commit/2de50f87622cd4e631fd17845e16a94ed5992b80 Author: Bram Moolenaar Date: Sun Mar 25 19:09:56 2018 +0200 patch 8.0.1643: terminal API tests fail Problem: Terminal API tests fail. Solution: Explicitly set 'title'. diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim --- a/src/testdir/test_terminal.vim +++ b/src/testdir/test_terminal.vim @@ -1029,6 +1029,7 @@ func Test_terminal_api_drop_newwin() return endif call assert_equal(1, winnr('$')) + set title " Use the title termcap entries to output the escape sequence. call writefile([ @@ -1045,6 +1046,7 @@ func Test_terminal_api_drop_newwin() call StopVimInTerminal(buf) call delete('Xscript') bwipe Xtextfile + set title& endfunc func Test_terminal_api_drop_oldwin() @@ -1056,6 +1058,7 @@ 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([ @@ -1071,6 +1074,7 @@ func Test_terminal_api_drop_oldwin() call StopVimInTerminal(buf) call delete('Xscript') bwipe Xtextfile + set title& endfunc func TryThis(bufnum, arg) @@ -1082,6 +1086,8 @@ func Test_terminal_api_call() if !CanRunVimInTerminal() return endif + set title + " Use the title termcap entries to output the escape sequence. call writefile([ \ 'exe "set t_ts=\]51; t_fs=\x07"', @@ -1098,4 +1104,5 @@ func Test_terminal_api_call() call delete('Xscript') unlet g:called_bufnum unlet g:called_arg + set title& endfunc diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -767,6 +767,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1643, +/**/ 1642, /**/ 1641,