From: Bram Moolenaar Date: Tue, 21 Jul 2020 19:48:58 +0000 (+0200) Subject: patch 8.2.1264: terminal getwinpos() test is a bit flaky X-Git-Tag: v8.2.1264 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=420952175a652372affc78c0017d6049f20063c3;p=vim patch 8.2.1264: terminal getwinpos() test is a bit flaky Problem: Terminal getwinpos() test is a bit flaky. Solution: Call getwinpos() a bit later. --- diff --git a/src/testdir/test_terminal3.vim b/src/testdir/test_terminal3.vim index 8405cd16a..76e8a1054 100644 --- a/src/testdir/test_terminal3.vim +++ b/src/testdir/test_terminal3.vim @@ -527,11 +527,9 @@ func Test_terminal_getwinpos() wincmd j set splitright - call writefile([ - \ 'echo getwinpos()', - \ ], 'XTest_getwinpos') - let buf = RunVimInTerminal('-S XTest_getwinpos', {'cols': 60}) - call TermWait(buf) + 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,7 +555,6 @@ func Test_terminal_getwinpos() call TermWait(buf) call term_sendkeys(buf, ":q\") call StopVimInTerminal(buf) - call delete('XTest_getwinpos') exe buf . 'bwipe!' set splitright& only! diff --git a/src/version.c b/src/version.c index a26908213..9b6f1b41a 100644 --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1264, /**/ 1263, /**/