# HG changeset patch # User Bram Moolenaar # Date 1607517004 -3600 # Node ID de5c000f14c49d12e91a565db97bd423b6fd317d # Parent 6028d0f8f533156715bca6c68d19d12c9c522215 patch 8.2.2118: dead code in the job support Commit: https://github.com/vim/vim/commit/f46bf5204c3c55d23921b501db21a906d526eb45 Author: Bram Moolenaar Date: Wed Dec 9 13:16:13 2020 +0100 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. diff --git a/src/job.c b/src/job.c --- a/src/job.c +++ b/src/job.c @@ -887,6 +887,11 @@ job_any_running() } #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) /* * Escape one argument for an external command. @@ -1269,9 +1274,7 @@ job_start( char **argv = NULL; int argc = 0; int i; -#if defined(UNIX) -# define USE_ARGV -#else +#ifndef USE_ARGV garray_T ga; #endif jobopt_T opt; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2118, +/**/ 2117, /**/ 2116,