diff options
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r-- | src/vim9compile.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vim9compile.c b/src/vim9compile.c index 38edbab2b8..9f36dc9517 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); } |