From: Bram Moolenaar Date: Fri, 7 Oct 2022 14:09:27 +0000 (+0100) Subject: patch 9.0.0684: skipped :exe command fails compilation on MS-Windows X-Git-Tag: v9.0.0684 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2eae3d24d7fe8beed64652bc5c1cbddd09dafc9a;p=vim patch 9.0.0684: skipped :exe command fails compilation on MS-Windows Problem: Skipped :exe command fails compilation on MS-Windows. Solution: Adjust return value when skipping. --- diff --git a/src/version.c b/src/version.c index 8be8b3820..953bb2292 100644 --- a/src/version.c +++ b/src/version.c @@ -699,6 +699,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 684, /**/ 683, /**/ diff --git a/src/vim9compile.c b/src/vim9compile.c index 38edbab2b..9f36dc951 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -3339,7 +3339,9 @@ compile_def_function( case CMD_echowindow: { long cmd_count = get_cmd_count(line, &ea); - if (cmd_count >= 0) + if (cmd_count < 0) + line = NULL; + else line = compile_mult_expr(p, ea.cmdidx, cmd_count, &cctx); } diff --git a/src/vim9instr.c b/src/vim9instr.c index 4407d5924..9c3b2a911 100644 --- a/src/vim9instr.c +++ b/src/vim9instr.c @@ -1876,6 +1876,7 @@ generate_MULT_EXPR(cctx_T *cctx, isntype_T isn_type, int count) { isn_T *isn; + RETURN_OK_IF_SKIP(cctx); if ((isn = generate_instr_drop(cctx, isn_type, count)) == NULL) return FAIL; isn->isn_arg.number = count;