To: vim_dev@googlegroups.com Subject: Patch 8.2.1264 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.1264 Problem: Terminal getwinpos() test is a bit flaky. Solution: Call getwinpos() a bit later. Files: src/testdir/test_terminal3.vim *** ../vim-8.2.1263/src/testdir/test_terminal3.vim 2020-07-12 21:38:25.463176446 +0200 --- src/testdir/test_terminal3.vim 2020-07-21 21:45:55.552311531 +0200 *************** *** 527,537 **** wincmd j set splitright ! call writefile([ ! \ 'echo getwinpos()', ! \ ], 'XTest_getwinpos') ! let buf = RunVimInTerminal('-S XTest_getwinpos', {'cols': 60}) ! call TermWait(buf) " Find the output of getwinpos() in the bottom line. let rows = term_getsize(buf)[0] --- 527,535 ---- wincmd j set splitright ! let buf = RunVimInTerminal('', {'cols': 60}) ! call TermWait(buf, 100) ! call term_sendkeys(buf, ":echo getwinpos(500)\") " Find the output of getwinpos() in the bottom line. let rows = term_getsize(buf)[0] *************** *** 557,563 **** call TermWait(buf) call term_sendkeys(buf, ":q\") call StopVimInTerminal(buf) - call delete('XTest_getwinpos') exe buf . 'bwipe!' set splitright& only! --- 555,560 ---- *** ../vim-8.2.1263/src/version.c 2020-07-21 21:30:55.015536477 +0200 --- src/version.c 2020-07-21 21:48:40.411775375 +0200 *************** *** 756,757 **** --- 756,759 ---- { /* Add new patch number below this line */ + /**/ + 1264, /**/ -- hundred-and-one symptoms of being an internet addict: 55. You ask your doctor to implant a gig in your brain. /// 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 ///