mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
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)
This commit is contained in:
@@ -15137,7 +15137,8 @@ f_job_start(typval_T *argvars UNUSED, typval_T *rettv)
|
|||||||
#ifdef USE_ARGV
|
#ifdef USE_ARGV
|
||||||
argv[argc++] = (char *)s;
|
argv[argc++] = (char *)s;
|
||||||
#else
|
#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);
|
s = vim_strsave_shellescape(s, FALSE, TRUE);
|
||||||
if (s == NULL)
|
if (s == NULL)
|
||||||
|
@@ -743,6 +743,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1461,
|
||||||
/**/
|
/**/
|
||||||
1460,
|
1460,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user