From: Bram Moolenaar Date: Mon, 29 Feb 2016 20:05:48 +0000 (+0100) Subject: patch 7.4.1461 X-Git-Tag: v7.4.1461 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a86f14a923d9a242107c16d0852f61f3daf985a8;p=thirdparty%2Fvim.git patch 7.4.1461 Problem: When starting job on MS-Windows all parts of the command are put in quotes. Solution: Only use quotes when needed. (Yasuhiro Matsumoto) --- diff --git a/src/eval.c b/src/eval.c index a208b2a727..a45b71de54 100644 --- a/src/eval.c +++ b/src/eval.c @@ -15137,7 +15137,8 @@ f_job_start(typval_T *argvars UNUSED, typval_T *rettv) #ifdef USE_ARGV argv[argc++] = (char *)s; #else - if (li != l->lv_first) + /* Only escape when needed, double quotes are not always allowed. */ + if (li != l->lv_first && vim_strpbrk(s, (char_u *)" \t\"") != NULL) { s = vim_strsave_shellescape(s, FALSE, TRUE); if (s == NULL) diff --git a/src/version.c b/src/version.c index e4499f15b0..45faff9a61 100644 --- a/src/version.c +++ b/src/version.c @@ -743,6 +743,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1461, /**/ 1460, /**/