1
0
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:
Bram Moolenaar
2020-09-06 21:13:00 +02:00
parent 63969ef07e
commit c98cdb3bc9
3 changed files with 5 additions and 3 deletions

View File

@@ -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)

View File

@@ -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))

View File

@@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1630,
/**/
1629,
/**/