]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.1016: Vim9: test fails when channel feature is missing v8.2.1016
authorBram Moolenaar <Bram@vim.org>
Fri, 19 Jun 2020 20:35:44 +0000 (22:35 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 19 Jun 2020 20:35:44 +0000 (22:35 +0200)
Problem:    Vim9: test fails when channel feature is missing.
Solution:   Process an :if command when skipping

src/version.c
src/vim9compile.c

index 8b5ad4e483dab1a93d971a2ed1feb006828f2d57..2842859c8b2073264df310f6eef425e087726050 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1016,
 /**/
     1015,
 /**/
index 8017716b5b5973eb5a0906b562b0e9cb3ea276f3..8f799a25bd0051ca6ba05100ce5c275a50d400bc 100644 (file)
@@ -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)