From: Bram Moolenaar Date: Sun, 4 Sep 2022 12:41:37 +0000 (+0100) Subject: patch 9.0.0377: argument assignment does not work X-Git-Tag: v9.0.0377 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb5adf19d15de4dd1d148954ac5345154f0fea60;p=vim patch 9.0.0377: argument assignment does not work Problem: Argument assignment does not work. Solution: Skip over "=". --- diff --git a/src/userfunc.c b/src/userfunc.c index 0c6f9938f..a22703101 100644 --- 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) { diff --git a/src/version.c b/src/version.c index 1e3f9a3bd..1f6ba8caa 100644 --- a/src/version.c +++ b/src/version.c @@ -703,6 +703,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 377, /**/ 376, /**/