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
This commit is contained in:
Bram Moolenaar
2020-06-19 22:35:44 +02:00
parent 20298ce679
commit 7e380030c1
2 changed files with 3 additions and 0 deletions

View File

@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1016,
/**/
1015,
/**/

View 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)