changeset 22161:4373f3569140 v8.2.1630

patch 8.2.1630: terminal test fails Commit: https://github.com/vim/vim/commit/c98cdb3bc970f04f93b4c394b4ec94c2eb5546c3 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 6 21:13:00 2020 +0200 patch 8.2.1630: terminal test fails Problem: Terminal test fails. Solution: Correct argument to term_start(). Correct error number.
author Bram Moolenaar <Bram@vim.org>
date Sun, 06 Sep 2020 21:15:03 +0200
parents 3dfa378dda43
children b910fd9e1190
files src/testdir/test_terminal.vim src/testdir/test_terminal2.vim src/version.c
diffstat 3 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_terminal.vim
+++ b/src/testdir/test_terminal.vim
@@ -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)
 
--- a/src/testdir/test_terminal2.vim
+++ b/src/testdir/test_terminal2.vim
@@ -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))
 
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1630,
+/**/
     1629,
 /**/
     1628,