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 8405cd1..76e8a10 100644
--- a/src/testdir/test_terminal3.vim
+++ b/src/testdir/test_terminal3.vim
@@ -527,11 +527,9 @@
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)\<CR>")
" Find the output of getwinpos() in the bottom line.
let rows = term_getsize(buf)[0]
@@ -557,7 +555,6 @@
call TermWait(buf)
call term_sendkeys(buf, ":q\<CR>")
call StopVimInTerminal(buf)
- call delete('XTest_getwinpos')
exe buf . 'bwipe!'
set splitright&
only!
diff --git a/src/version.c b/src/version.c
index a269082..9b6f1b4 100644
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1264,
+/**/
1263,
/**/
1262,