forked from aniani/vim
patch 8.2.1630: terminal test fails
Problem: Terminal test fails. Solution: Correct argument to term_start(). Correct error number.
This commit is contained in:
@@ -912,7 +912,7 @@ func Test_terminal_composing_unicode()
|
||||
endif
|
||||
|
||||
enew
|
||||
let buf = term_start(cmd, {'curwin': bufnr('')})
|
||||
let buf = term_start(cmd, {'curwin': 1})
|
||||
let g:job = term_getjob(buf)
|
||||
call WaitFor({-> term_getline(buf, 1) !=# ''}, 1000)
|
||||
|
||||
|
@@ -560,8 +560,8 @@ func Test_term_gettty()
|
||||
endif
|
||||
endif
|
||||
|
||||
call assert_fails('call term_gettty(buf, 2)', 'E475:')
|
||||
call assert_fails('call term_gettty(buf, -1)', 'E475:')
|
||||
call assert_fails('call term_gettty(buf, 2)', 'E1023:')
|
||||
call assert_fails('call term_gettty(buf, -1)', 'E1023:')
|
||||
|
||||
call assert_equal('', term_gettty(buf + 1))
|
||||
|
||||
|
@@ -754,6 +754,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1630,
|
||||
/**/
|
||||
1629,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user