# HG changeset patch # User Bram Moolenaar # Date 1662295502 -7200 # Node ID 105f946422d1eb9f85acbf7f102d557fe0a9096c # Parent b2f98a810ef8edd7f30b1629e8d8d2912a1ce9c9 patch 9.0.0377: argument assignment does not work Commit: https://github.com/vim/vim/commit/eb5adf19d15de4dd1d148954ac5345154f0fea60 Author: Bram Moolenaar 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 "=". diff --git a/src/userfunc.c b/src/userfunc.c --- 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 --- 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,