Mercurial > vim
changeset 21427:299cf1c2a37d v8.2.1264
patch 8.2.1264: terminal getwinpos() test is a bit flaky
Commit: https://github.com/vim/vim/commit/420952175a652372affc78c0017d6049f20063c3
Author: Bram Moolenaar <Bram@vim.org>
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 21 Jul 2020 22:00:06 +0200 |
parents | bb6e617589d0 |
children | 6dc6978d09ca |
files | src/testdir/test_terminal3.vim src/version.c |
diffstat | 2 files changed, 5 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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)\<CR>") " 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\<CR>") call StopVimInTerminal(buf) - call delete('XTest_getwinpos') exe buf . 'bwipe!' set splitright& only!