diff src/channel.c @ 12058:e78fde22faec v8.0.0909

patch 8.0.0909: channel test fails commit https://github.com/vim/vim/commit/8ed54007399f968aab447ae6cb46623b1bdbc75e Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 11 22:22:36 2017 +0200 patch 8.0.0909: channel test fails Problem: Channel test fails. Solution: Allow for "cwd" and "env" arguments.
author Christian Brabandt <cb@256bit.org>
date Fri, 11 Aug 2017 22:30:05 +0200
parents 0498547dace0
children a879814b8a37
line wrap: on
line diff
--- a/src/channel.c
+++ b/src/channel.c
@@ -4976,8 +4976,9 @@ job_start(typval_T *argvars, jobopt_T *o
 	clear_job_options(&opt);
 	opt.jo_mode = MODE_NL;
 	if (get_job_options(&argvars[1], &opt,
-	    JO_MODE_ALL + JO_CB_ALL + JO_TIMEOUT_ALL + JO_STOPONEXIT
-			 + JO_EXIT_CB + JO_OUT_IO + JO_BLOCK_WRITE, 0) == FAIL)
+		    JO_MODE_ALL + JO_CB_ALL + JO_TIMEOUT_ALL + JO_STOPONEXIT
+			 + JO_EXIT_CB + JO_OUT_IO + JO_BLOCK_WRITE,
+		     JO2_ENV + JO2_CWD) == FAIL)
 	    goto theend;
     }