Mercurial > vim
comparison src/testdir/test_terminal.vim @ 13750:3ab6198c1f9a v8.0.1747
patch 8.0.1747: MS-Windows: term_start() does not set job_info() cmd
commit https://github.com/vim/vim/commit/ebe74b73677b06db7d483987a863b41cee051cc0
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Apr 21 23:34:43 2018 +0200
patch 8.0.1747: MS-Windows: term_start() does not set job_info() cmd
Problem: MS-Windows: term_start() does not set job_info() cmd.
Solution: Share the code from job_start() to set jv_argv.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 21 Apr 2018 23:45:06 +0200 |
parents | a34b1323286c |
children | 415185e2c970 |
comparison
equal
deleted
inserted
replaced
13749:f30ac8135299 | 13750:3ab6198c1f9a |
---|---|
783 | 783 |
784 enew | 784 enew |
785 let buf = term_start(cmd, {'curwin': bufnr('')}) | 785 let buf = term_start(cmd, {'curwin': bufnr('')}) |
786 let g:job = term_getjob(buf) | 786 let g:job = term_getjob(buf) |
787 call term_wait(buf, 50) | 787 call term_wait(buf, 50) |
788 | |
789 if has('win32') | |
790 call assert_equal('cmd', job_info(g:job).cmd[0]) | |
791 else | |
792 call assert_equal(&shell, job_info(g:job).cmd[0]) | |
793 endif | |
788 | 794 |
789 " ascii + composing | 795 " ascii + composing |
790 let txt = "a\u0308bc" | 796 let txt = "a\u0308bc" |
791 call term_sendkeys(buf, "echo " . txt . "\r") | 797 call term_sendkeys(buf, "echo " . txt . "\r") |
792 call term_wait(buf, 50) | 798 call term_wait(buf, 50) |