diff src/userfunc.c @ 30079:105f946422d1 v9.0.0377

patch 9.0.0377: argument assignment does not work Commit: https://github.com/vim/vim/commit/eb5adf19d15de4dd1d148954ac5345154f0fea60 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 4 13:41:37 2022 +0100 patch 9.0.0377: argument assignment does not work Problem: Argument assignment does not work. Solution: Skip over "=".
author Bram Moolenaar <Bram@vim.org>
date Sun, 04 Sep 2022 14:45:02 +0200
parents d45ee1f829ba
children a542dfb1c1a2
line wrap: on
line diff
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -311,7 +311,7 @@ get_function_args(
 
 		// find the end of the expression (doesn't evaluate it)
 		any_default = TRUE;
-		p = skipwhite(p) + 1;
+		p = skipwhite(np + 1);
 		expr = p;
 		if (eval1(&p, &rettv, NULL) != FAIL)
 		{