Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
brammool committed Apr 15, 2018
1 parent 3cba734 commit 6c67219
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/testdir/test_terminal.vim
Expand Up @@ -281,7 +281,8 @@ func Test_terminal_scrollback()
call term_sendkeys(buf, "cat Xtext\<CR>")
endif
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('$')
call assert_inrange(91, 100, lines)

Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -762,6 +762,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1718,
/**/
1717,
/**/
Expand Down

0 comments on commit 6c67219

Please sign in to comment.