patch 8.2.1530: Vim9: test fails on MS-Windows
Problem: Vim9: test fails on MS-Windows.
Solution: Skip Ex command inside "if false".
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 11a75c1..c9805f6 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -6879,9 +6879,17 @@
break;
default:
- // Not recognized, execute with do_cmdline_cmd().
- ea.arg = p;
- line = compile_exec(line, &ea, &cctx);
+ if (cctx.ctx_skip == SKIP_YES)
+ {
+ // We don't check for a next command here.
+ line = (char_u *)"";
+ }
+ else
+ {
+ // Not recognized, execute with do_cmdline_cmd().
+ ea.arg = p;
+ line = compile_exec(line, &ea, &cctx);
+ }
break;
}
nextline: