diff --git a/src/os_unix.c b/src/os_unix.c index f2f2ca4c9a..f7b5ae4b11 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -5195,7 +5195,7 @@ mch_start_job(char **argv, job_T *job, jobopt_T *options UNUSED) /* set up stdout for the child */ if (use_null_for_out && null_fd >= 0) { - close(0); + close(1); ignored = dup(null_fd); } else @@ -5206,6 +5206,7 @@ mch_start_job(char **argv, job_T *job, jobopt_T *options UNUSED) ignored = dup(fd_out[1]); close(fd_out[1]); } + if (null_fd >= 0) close(null_fd); diff --git a/src/version.c b/src/version.c index 56e9a3e61a..36eba983f7 100644 --- a/src/version.c +++ b/src/version.c @@ -753,6 +753,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1822, /**/ 1821, /**/