From 7e380030c15d961421a3fcda6cc358e2d112f4f8 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 19 Jun 2020 22:35:44 +0200 Subject: [PATCH] patch 8.2.1016: Vim9: test fails when channel feature is missing Problem: Vim9: test fails when channel feature is missing. Solution: Process an :if command when skipping --- src/version.c | 2 ++ src/vim9compile.c | 1 + 2 files changed, 3 insertions(+) diff --git a/src/version.c b/src/version.c index 8b5ad4e483..2842859c8b 100644 --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1016, /**/ 1015, /**/ diff --git a/src/vim9compile.c b/src/vim9compile.c index 8017716b5b..8f799a25bd 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -6838,6 +6838,7 @@ compile_def_function(ufunc_T *ufunc, int set_return_type, cctx_T *outer_cctx) p = skipwhite(p); if (cctx.ctx_skip == SKIP_YES + && ea.cmdidx != CMD_if && ea.cmdidx != CMD_elseif && ea.cmdidx != CMD_else && ea.cmdidx != CMD_endif)