changeset 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 b2f98a810ef8
children 9ed8531024ec
files src/userfunc.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
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)
 		{
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    377,
+/**/
     376,
 /**/
     375,