comparison src/testdir/test_terminal.vim @ 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 ff21e2962490
children 5e287462487e
comparison
equal deleted inserted replaced
22160:3dfa378dda43 22161:4373f3569140
910 let cmd = &shell 910 let cmd = &shell
911 let lnum = [1, 3, 5] 911 let lnum = [1, 3, 5]
912 endif 912 endif
913 913
914 enew 914 enew
915 let buf = term_start(cmd, {'curwin': bufnr('')}) 915 let buf = term_start(cmd, {'curwin': 1})
916 let g:job = term_getjob(buf) 916 let g:job = term_getjob(buf)
917 call WaitFor({-> term_getline(buf, 1) !=# ''}, 1000) 917 call WaitFor({-> term_getline(buf, 1) !=# ''}, 1000)
918 918
919 if has('win32') 919 if has('win32')
920 call assert_equal('cmd', job_info(g:job).cmd[0]) 920 call assert_equal('cmd', job_info(g:job).cmd[0])