]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 7.4.1461 v7.4.1461
authorBram Moolenaar <Bram@vim.org>
Mon, 29 Feb 2016 20:05:48 +0000 (21:05 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 29 Feb 2016 20:05:48 +0000 (21:05 +0100)
Problem:    When starting job on MS-Windows all parts of the command are put
            in quotes.
Solution:   Only use quotes when needed. (Yasuhiro Matsumoto)

src/eval.c
src/version.c

index a208b2a727e88e5a79bde0359fb21b536d5a59ae..a45b71de5429b0a0d5557a338d1fd75d95133eaf 100644 (file)
@@ -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)
index e4499f15b0d60c0f2ca6da1b1d531593408f6f0b..45faff9a61017b9154a40401789802c4216fbdc6 100644 (file)
@@ -743,6 +743,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1461,
 /**/
     1460,
 /**/