# HG changeset patch # User Bram Moolenaar # Date 1595361606 -7200 # Node ID 299cf1c2a37d6e94396e9be9a03b09379d658155 # Parent bb6e617589d087a40ebfa7bdd0b93606b3e31618 patch 8.2.1264: terminal getwinpos() test is a bit flaky Commit: https://github.com/vim/vim/commit/420952175a652372affc78c0017d6049f20063c3 Author: Bram Moolenaar Date: Tue Jul 21 21:48:58 2020 +0200 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 --- 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 --- a/src/version.c +++ b/src/version.c @@ -755,6 +755,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1264, +/**/ 1263, /**/ 1262,