Skip to content

Commit 5163fcc

Browse files
committed
patch 8.2.1530: Vim9: test fails on MS-Windows
Problem: Vim9: test fails on MS-Windows. Solution: Skip Ex command inside "if false".
1 parent 749639e commit 5163fcc

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,8 @@ static char *(features[]) =
754754

755755
static int included_patches[] =
756756
{ /* Add new patch number below this line */
757+
/**/
758+
1530,
757759
/**/
758760
1529,
759761
/**/

src/vim9compile.c

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6879,9 +6879,17 @@ compile_def_function(ufunc_T *ufunc, int set_return_type, cctx_T *outer_cctx)
68796879
break;
68806880

68816881
default:
6882-
// Not recognized, execute with do_cmdline_cmd().
6883-
ea.arg = p;
6884-
line = compile_exec(line, &ea, &cctx);
6882+
if (cctx.ctx_skip == SKIP_YES)
6883+
{
6884+
// We don't check for a next command here.
6885+
line = (char_u *)"";
6886+
}
6887+
else
6888+
{
6889+
// Not recognized, execute with do_cmdline_cmd().
6890+
ea.arg = p;
6891+
line = compile_exec(line, &ea, &cctx);
6892+
}
68856893
break;
68866894
}
68876895
nextline:

0 commit comments

Comments
 (0)