diff src/vim9script.c @ 28690:9a7a2908e1a8 v8.2.4869

patch 8.2.4869: expression in command block does not look after NL Commit: https://github.com/vim/vim/commit/e442d59f6d6732c226d636067c07b7342838b36b Author: Bram Moolenaar <Bram@vim.org> Date: Thu May 5 12:20:28 2022 +0100 patch 8.2.4869: expression in command block does not look after NL Problem: Expression in command block does not look after NL. Solution: Skip over NL to check what follows. (closes https://github.com/vim/vim/issues/10358)
author Bram Moolenaar <Bram@vim.org>
date Thu, 05 May 2022 13:30:05 +0200
parents daf785caecf2
children 99a7eb1881c7
line wrap: on
line diff
--- a/src/vim9script.c
+++ b/src/vim9script.c
@@ -589,7 +589,7 @@ handle_import(
 	char_u *p;
 
 	if (getnext)
-	    arg = eval_next_line(evalarg);
+	    arg = eval_next_line(expr_end, evalarg);
 	else
 	    arg = nextarg;