forked from aniani/vim
patch 8.2.2118: dead code in the job support
Problem: Dead code in the job support. (Dominique Pellé) Solution: Define USE_ARGV before checking for it.
This commit is contained in:
@@ -887,6 +887,11 @@ job_any_running()
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Unix uses argv[] for the command, other systems use a string.
|
||||||
|
#if defined(UNIX)
|
||||||
|
# define USE_ARGV
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(USE_ARGV) || defined(PROTO)
|
#if !defined(USE_ARGV) || defined(PROTO)
|
||||||
/*
|
/*
|
||||||
* Escape one argument for an external command.
|
* Escape one argument for an external command.
|
||||||
@@ -1269,9 +1274,7 @@ job_start(
|
|||||||
char **argv = NULL;
|
char **argv = NULL;
|
||||||
int argc = 0;
|
int argc = 0;
|
||||||
int i;
|
int i;
|
||||||
#if defined(UNIX)
|
#ifndef USE_ARGV
|
||||||
# define USE_ARGV
|
|
||||||
#else
|
|
||||||
garray_T ga;
|
garray_T ga;
|
||||||
#endif
|
#endif
|
||||||
jobopt_T opt;
|
jobopt_T opt;
|
||||||
|
@@ -750,6 +750,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 */
|
||||||
|
/**/
|
||||||
|
2118,
|
||||||
/**/
|
/**/
|
||||||
2117,
|
2117,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user