]> granicus.if.org Git - vim/commitdiff
patch 9.0.0377: argument assignment does not work v9.0.0377
authorBram Moolenaar <Bram@vim.org>
Sun, 4 Sep 2022 12:41:37 +0000 (13:41 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 4 Sep 2022 12:41:37 +0000 (13:41 +0100)
Problem:    Argument assignment does not work.
Solution:   Skip over "=".

src/userfunc.c
src/version.c

index 0c6f9938f0ad22b6b0dd8e5b57208e4b560edfeb..a2270310196e2451a391dbe65a5a1bcc280972a8 100644 (file)
@@ -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)
                {
index 1e3f9a3bdf5829eab94cc26dcdb5cf305048a2cb..1f6ba8caa1f2e79cb2e562ef91b815ac81e65a9b 100644 (file)
@@ -703,6 +703,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    377,
 /**/
     376,
 /**/