commit | eb5adf19d15de4dd1d148954ac5345154f0fea60 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Sep 04 13:41:37 2022 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Sep 04 13:41:37 2022 +0100 |
tree | 454d15277cb5cad689e047e55f730c442e42fafd | |
parent | 6b085b9d7367e077ca69f4f82ba0f92cc6b6e443 [diff] [blame] |
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 0c6f993..a227031 100644 --- a/src/userfunc.c +++ b/src/userfunc.c
@@ -311,7 +311,7 @@ // 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) {