diff src/eval.c @ 7975:7224f5e9c36a v7.4.1283

commit https://github.com/vim/vim/commit/942d6b22686858c9e72f8b8929df5c288170179c Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 7 19:57:16 2016 +0100 patch 7.4.1283 Problem: The job feature isn't available on MS-Windows. Solution: Add the job feature. Fix argument of job_stop(). (Yasuhiro Matsumoto)
author Christian Brabandt <cb@256bit.org>
date Sun, 07 Feb 2016 20:00:05 +0100
parents 45ea5ebf3a98
children 22367b9f528a
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -8205,7 +8205,7 @@ static struct fst
 #ifdef FEAT_JOB
     {"job_start",	1, 2, f_job_start},
     {"job_status",	1, 1, f_job_status},
-    {"job_stop",	1, 1, f_job_stop},
+    {"job_stop",	1, 2, f_job_stop},
 #endif
     {"join",		1, 2, f_join},
     {"jsdecode",	1, 1, f_jsdecode},
@@ -14286,7 +14286,7 @@ f_job_start(typval_T *argvars UNUSED, ty
 
     rettv->vval.v_job->jv_status = JOB_FAILED;
 #ifndef USE_ARGV
-    ga_init2(&ga, 200);
+    ga_init2(&ga, (int)sizeof(char*), 20);
 #endif
 
     if (argvars[0].v_type == VAR_STRING)