# HG changeset patch # User Bram Moolenaar # Date 1598564703 -7200 # Node ID 0ce86b015058a2c997d392d87430133dc4a3918b # Parent 402f745d2d2b00661b6618f83faee3ea7581bc82 patch 8.2.1530: Vim9: test fails on MS-Windows Commit: https://github.com/vim/vim/commit/5163fcce792c9d730bf864f4d9bb07f30625cff9 Author: Bram Moolenaar Date: Thu Aug 27 23:37:09 2020 +0200 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/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -755,6 +755,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1530, +/**/ 1529, /**/ 1528, diff --git a/src/vim9compile.c b/src/vim9compile.c --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -6879,9 +6879,17 @@ compile_def_function(ufunc_T *ufunc, int 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: