patch 8.1.2014: terminal altscreen test fails sometimes
Problem: Terminal altscreen test fails sometimes.
Solution: Use WaitFor().
diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim
index 48efd36..82459f8 100644
--- a/src/testdir/test_terminal.vim
+++ b/src/testdir/test_terminal.vim
@@ -2093,11 +2093,10 @@
let buf = term_start(&shell, {})
call term_sendkeys(buf, 'echo "\e[?1047h"' .. "\r")
- call term_wait(buf)
- call assert_equal(1, term_getaltscreen(buf))
+ call WaitForAssert({-> assert_equal(1, term_getaltscreen(buf))})
+
call term_sendkeys(buf, 'echo "\e[?1047l"' .. "\r")
- call term_wait(buf)
- call assert_equal(0, buf->term_getaltscreen())
+ call WaitForAssert({-> assert_equal(0, term_getaltscreen(buf))})
call term_sendkeys(buf, "exit\r")
exe buf . "bwipe!"
diff --git a/src/version.c b/src/version.c
index d86f9f5..448407f 100644
--- a/src/version.c
+++ b/src/version.c
@@ -758,6 +758,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2014,
+/**/
2013,
/**/
2012,