forked from aniani/vim
patch 8.0.1718: terminal scrollback test fails on MS-Windows
Problem: Terminal scrollback test fails on MS-Windows.
Solution: Check for the last line of output anticipating there might be an
empty line below it.
This commit is contained in:
@@ -281,7 +281,8 @@ func Test_terminal_scrollback()
|
|||||||
call term_sendkeys(buf, "cat Xtext\<CR>")
|
call term_sendkeys(buf, "cat Xtext\<CR>")
|
||||||
endif
|
endif
|
||||||
let rows = term_getsize(buf)[0]
|
let rows = term_getsize(buf)[0]
|
||||||
call WaitFor({-> term_getline(buf, rows - 1) =~ '149'})
|
" On MS-Windows there is an empty line, check both last line and above it.
|
||||||
|
call WaitFor({-> term_getline(buf, rows - 1) . term_getline(buf, rows - 2) =~ '149'})
|
||||||
let lines = line('$')
|
let lines = line('$')
|
||||||
call assert_inrange(91, 100, lines)
|
call assert_inrange(91, 100, lines)
|
||||||
|
|
||||||
|
|||||||
@@ -762,6 +762,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 */
|
||||||
|
/**/
|
||||||
|
1718,
|
||||||
/**/
|
/**/
|
||||||
1717,
|
1717,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user