0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -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

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