changeset 23144:de5c000f14c4 v8.2.2118

patch 8.2.2118: dead code in the job support Commit: https://github.com/vim/vim/commit/f46bf5204c3c55d23921b501db21a906d526eb45 Author: Bram Moolenaar <Bram@vim.org> 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.
author Bram Moolenaar <Bram@vim.org>
date Wed, 09 Dec 2020 13:30:04 +0100
parents 6028d0f8f533
children 80157dd84499
files src/job.c src/version.c
diffstat 2 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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,