0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

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.
This commit is contained in:
Bram Moolenaar 2022-10-07 15:09:27 +01:00
parent bdc09a18fc
commit 2eae3d24d7
3 changed files with 6 additions and 1 deletions

View File

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

View File

@ -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);
}

View File

@ -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;