To: vim_dev@googlegroups.com Subject: Patch 8.1.2014 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.1.2014 Problem: Terminal altscreen test fails sometimes. Solution: Use WaitFor(). Files: src/testdir/test_terminal.vim *** ../vim-8.1.2013/src/testdir/test_terminal.vim 2019-09-08 20:55:03.146072987 +0200 --- src/testdir/test_terminal.vim 2019-09-08 22:08:23.213641666 +0200 *************** *** 2093,2103 **** 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 term_sendkeys(buf, 'echo "\e[?1047l"' .. "\r") ! call term_wait(buf) ! call assert_equal(0, buf->term_getaltscreen()) call term_sendkeys(buf, "exit\r") exe buf . "bwipe!" --- 2093,2102 ---- let buf = term_start(&shell, {}) call term_sendkeys(buf, 'echo "\e[?1047h"' .. "\r") ! call WaitForAssert({-> assert_equal(1, term_getaltscreen(buf))}) ! call term_sendkeys(buf, 'echo "\e[?1047l"' .. "\r") ! call WaitForAssert({-> assert_equal(0, term_getaltscreen(buf))}) call term_sendkeys(buf, "exit\r") exe buf . "bwipe!" *** ../vim-8.1.2013/src/version.c 2019-09-08 21:51:36.453843927 +0200 --- src/version.c 2019-09-08 22:09:15.549441067 +0200 *************** *** 759,760 **** --- 759,762 ---- { /* Add new patch number below this line */ + /**/ + 2014, /**/ -- hundred-and-one symptoms of being an internet addict: 223. You set up a web-cam as your home's security system. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///