diff src/vim9execute.c @ 23100:9c3a6c33c0e5 v8.2.2096

patch 8.2.2096: Vim9: command modifiers not restored after assignment Commit: https://github.com/vim/vim/commit/f665e97ffa06817975810cb511b13dbaa83ec630 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 5 19:17:16 2020 +0100 patch 8.2.2096: Vim9: command modifiers not restored after assignment Problem: Vim9: command modifiers not restored after assignment. Solution: Jump to nextline instead of using continue.
author Bram Moolenaar <Bram@vim.org>
date Sat, 05 Dec 2020 19:30:04 +0100
parents bdafc132a4a1
children 3239b0f3c592
line wrap: on
line diff
--- a/src/vim9execute.c
+++ b/src/vim9execute.c
@@ -2432,6 +2432,7 @@ call_def_function(
 		    else
 #endif
 		    {
+			SOURCING_LNUM = iptr->isn_lnum;
 			n1 = tv_get_number_chk(tv1, &error);
 			if (error)
 			    goto on_error;