commit | 00d253e2b2f435a5386582c3f857008e7ac355c2 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Apr 06 22:13:01 2020 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Apr 06 22:13:01 2020 +0200 |
tree | 71bbea4e4c6efa593a85266e445d82377a65f454 | |
parent | ee4e0c1e9a81cb5d96e0060203a9033c2f28588e [diff] [blame] |
patch 8.2.0523: loops are repeated Problem: Loops are repeated. Solution: Use FOR_ALL_ macros. (Yegappan Lakshmanan, closes #5882)
diff --git a/src/userfunc.c b/src/userfunc.c index cff86da..f93c149 100644 --- a/src/userfunc.c +++ b/src/userfunc.c
@@ -1643,7 +1643,7 @@ int r = 0; range_list_materialize(l); - FOR_ALL_LIST_ITEMS(args->vval.v_list, item) + FOR_ALL_LIST_ITEMS(l, item) { if (argc == MAX_FUNC_ARGS - (partial == NULL ? 0 : partial->pt_argc)) {