# HG changeset patch # User Bram Moolenaar # Date 1567975503 -7200 # Node ID ef5720fb6f41bb3a10fc00652f0650ecf31582c2 # Parent 474da17e65ddfa634d7d69b15c1150c0f88d9afb patch 8.1.2015: terminal altscreen test still fails sometimes Commit: https://github.com/vim/vim/commit/bf9a3b0164e649b357d6218b4358208288b6fb7e Author: Bram Moolenaar Date: Sun Sep 8 22:35:48 2019 +0200 patch 8.1.2015: terminal altscreen test still fails sometimes Problem: Terminal altscreen test still fails sometimes. Solution: Write the escape sequence in a file. 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 @@ -2088,16 +2088,22 @@ func Test_terminal_getwinpos() endfunc func Test_terminal_altscreen() - CheckUnix + if has('win32') + let cmd = "type Xtext\" + else + let cmd = "cat Xtext\" + endif let buf = term_start(&shell, {}) - - call term_sendkeys(buf, 'echo "\e[?1047h"' .. "\r") + call writefile(["\[?1047h"], 'Xtext') + call term_sendkeys(buf, cmd) call WaitForAssert({-> assert_equal(1, term_getaltscreen(buf))}) - call term_sendkeys(buf, 'echo "\e[?1047l"' .. "\r") + call writefile(["\[?1047l"], 'Xtext') + call term_sendkeys(buf, cmd) call WaitForAssert({-> assert_equal(0, term_getaltscreen(buf))}) call term_sendkeys(buf, "exit\r") exe buf . "bwipe!" + call delete('Xtext') endfunc diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -758,6 +758,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2015, +/**/ 2014, /**/ 2013,