mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.0.0902: cannot specify directory or environment for a job
Problem: Cannot specify directory or environment for a job. Solution: Add the "cwd" and "env" arguments to job options. (Yasuhiro Matsumoto, closes #1160)
This commit is contained in:
@@ -2362,7 +2362,8 @@ f_term_start(typval_T *argvars, typval_T *rettv)
|
||||
&& get_job_options(&argvars[1], &opt,
|
||||
JO_TIMEOUT_ALL + JO_STOPONEXIT
|
||||
+ JO_EXIT_CB + JO_CLOSE_CALLBACK
|
||||
+ JO2_TERM_NAME + JO2_TERM_FINISH) == FAIL)
|
||||
+ JO2_TERM_NAME + JO2_TERM_FINISH
|
||||
+ JO2_CWD + JO2_ENV) == FAIL)
|
||||
return;
|
||||
|
||||
term_start(cmd, &opt);
|
||||
|
Reference in New Issue
Block a user