forked from aniani/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.
This commit is contained in:
@@ -527,11 +527,9 @@ func Test_terminal_getwinpos()
|
|||||||
wincmd j
|
wincmd j
|
||||||
set splitright
|
set splitright
|
||||||
|
|
||||||
call writefile([
|
let buf = RunVimInTerminal('', {'cols': 60})
|
||||||
\ 'echo getwinpos()',
|
call TermWait(buf, 100)
|
||||||
\ ], 'XTest_getwinpos')
|
call term_sendkeys(buf, ":echo getwinpos(500)\<CR>")
|
||||||
let buf = RunVimInTerminal('-S XTest_getwinpos', {'cols': 60})
|
|
||||||
call TermWait(buf)
|
|
||||||
|
|
||||||
" Find the output of getwinpos() in the bottom line.
|
" Find the output of getwinpos() in the bottom line.
|
||||||
let rows = term_getsize(buf)[0]
|
let rows = term_getsize(buf)[0]
|
||||||
@@ -557,7 +555,6 @@ func Test_terminal_getwinpos()
|
|||||||
call TermWait(buf)
|
call TermWait(buf)
|
||||||
call term_sendkeys(buf, ":q\<CR>")
|
call term_sendkeys(buf, ":q\<CR>")
|
||||||
call StopVimInTerminal(buf)
|
call StopVimInTerminal(buf)
|
||||||
call delete('XTest_getwinpos')
|
|
||||||
exe buf . 'bwipe!'
|
exe buf . 'bwipe!'
|
||||||
set splitright&
|
set splitright&
|
||||||
only!
|
only!
|
||||||
|
@@ -754,6 +754,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1264,
|
||||||
/**/
|
/**/
|
||||||
1263,
|
1263,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user