changeset 20929:808e39c257de v8.2.1016

patch 8.2.1016: Vim9: test fails when channel feature is missing Commit: https://github.com/vim/vim/commit/7e380030c15d961421a3fcda6cc358e2d112f4f8 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 19 22:35:44 2020 +0200 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
author Bram Moolenaar <Bram@vim.org>
date Fri, 19 Jun 2020 22:45:04 +0200
parents 75950e88ec4f
children e73f466f6884
files src/version.c src/vim9compile.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1016,
+/**/
     1015,
 /**/
     1014,
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -6838,6 +6838,7 @@ compile_def_function(ufunc_T *ufunc, int
 	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)