Mercurial > vim
comparison src/terminal.c @ 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 | 260256caac38 |
children | d0d8125ba692 |
comparison
equal
deleted
inserted
replaced
13749:f30ac8135299 | 13750:3ab6198c1f9a |
---|---|
5340 goto failed; | 5340 goto failed; |
5341 | 5341 |
5342 job = job_alloc(); | 5342 job = job_alloc(); |
5343 if (job == NULL) | 5343 if (job == NULL) |
5344 goto failed; | 5344 goto failed; |
5345 if (argvar->v_type == VAR_STRING) | |
5346 { | |
5347 int argc; | |
5348 | |
5349 build_argv_from_string(cmd, &job->jv_argv, &argc); | |
5350 } | |
5351 else | |
5352 { | |
5353 int argc; | |
5354 | |
5355 build_argv_from_list(argvar->vval.v_list, &job->jv_argv, &argc); | |
5356 } | |
5345 | 5357 |
5346 if (opt->jo_set & JO_IN_BUF) | 5358 if (opt->jo_set & JO_IN_BUF) |
5347 job->jv_in_buf = buflist_findnr(opt->jo_io_buf[PART_IN]); | 5359 job->jv_in_buf = buflist_findnr(opt->jo_io_buf[PART_IN]); |
5348 | 5360 |
5349 if (!winpty_spawn(term->tl_winpty, spawn_config, &child_process_handle, | 5361 if (!winpty_spawn(term->tl_winpty, spawn_config, &child_process_handle, |