changeset 21961:0ce86b015058 v8.2.1530

patch 8.2.1530: Vim9: test fails on MS-Windows Commit: https://github.com/vim/vim/commit/5163fcce792c9d730bf864f4d9bb07f30625cff9 Author: Bram Moolenaar <Bram@vim.org> 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".
author Bram Moolenaar <Bram@vim.org>
date Thu, 27 Aug 2020 23:45:03 +0200
parents 402f745d2d2b
children 351dd8317edc
files src/version.c src/vim9compile.c
diffstat 2 files changed, 13 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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,
--- 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: