0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.1530: Vim9: test fails on MS-Windows

Problem:    Vim9: test fails on MS-Windows.
Solution:   Skip Ex command inside "if false".
This commit is contained in:
Bram Moolenaar
2020-08-27 23:37:09 +02:00
parent 749639ec72
commit 5163fcce79
2 changed files with 13 additions and 3 deletions

View File

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

View File

@@ -6879,9 +6879,17 @@ compile_def_function(ufunc_T *ufunc, int set_return_type, cctx_T *outer_cctx)
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: