Patch 8.2.1264

3 views
Skip to first unread message

Bram Moolenaar

unread,
Jul 21, 2020, 3:49:34 PM7/21/20
to vim...@googlegroups.com

Patch 8.2.1264
Problem: Terminal getwinpos() test is a bit flaky.
Solution: Call getwinpos() a bit later.
Files: src/testdir/test_terminal3.vim


*** ../vim-8.2.1263/src/testdir/test_terminal3.vim 2020-07-12 21:38:25.463176446 +0200
--- src/testdir/test_terminal3.vim 2020-07-21 21:45:55.552311531 +0200
***************
*** 527,537 ****
wincmd j
set splitright

! call writefile([
! \ 'echo getwinpos()',
! \ ], 'XTest_getwinpos')
! let buf = RunVimInTerminal('-S XTest_getwinpos', {'cols': 60})
! call TermWait(buf)

" Find the output of getwinpos() in the bottom line.
let rows = term_getsize(buf)[0]
--- 527,535 ----
wincmd j
set splitright

! 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,563 ****
call TermWait(buf)
call term_sendkeys(buf, ":q\<CR>")
call StopVimInTerminal(buf)
- call delete('XTest_getwinpos')
exe buf . 'bwipe!'
set splitright&
only!
--- 555,560 ----
*** ../vim-8.2.1263/src/version.c 2020-07-21 21:30:55.015536477 +0200
--- src/version.c 2020-07-21 21:48:40.411775375 +0200
***************
*** 756,757 ****
--- 756,759 ----
{ /* Add new patch number below this line */
+ /**/
+ 1264,
/**/

--
hundred-and-one symptoms of being an internet addict:
55. You ask your doctor to implant a gig in your brain.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages