diff src/os_win32.c @ 12724:17c257dd2438 v8.0.1240

patch 8.0.1240: MS-Windows: term_start() does not support environment commit https://github.com/vim/vim/commit/ba6febd380c931b92361a189e85b19ed467c9c64 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Oct 30 21:56:23 2017 +0100 patch 8.0.1240: MS-Windows: term_start() does not support environment Problem: MS-Windows: term_start() does not support environment. Solution: Implement the environment argument. (Yasuhiro Matsumoto, closes #2264)
author Christian Brabandt <cb@256bit.org>
date Mon, 30 Oct 2017 22:00:06 +0100
parents c589ff137f42
children 1a450ce6980c
line wrap: on
line diff
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -5033,8 +5033,8 @@ job_io_file_open(
  * Turn the dictionary "env" into a NUL separated list that can be used as the
  * environment argument of vim_create_process().
  */
-    static void
-make_job_env(garray_T *gap, dict_T *env)
+    void
+win32_build_env(dict_T *env, garray_T *gap)
 {
     hashitem_T	*hi;
     int		todo = (int)env->dv_hashtab.ht_used;
@@ -5133,7 +5133,7 @@ mch_job_start(char *cmd, job_T *job, job
     }
 
     if (options->jo_env != NULL)
-	make_job_env(&ga, options->jo_env);
+	win32_build_env(options->jo_env, &ga);
 
     ZeroMemory(&pi, sizeof(pi));
     ZeroMemory(&si, sizeof(si));