diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-28 16:16:15 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-28 16:16:15 +0100 |
commit | 82418263fa91792e851cb0de879d1595327d5531 (patch) | |
tree | e14f38d9dba9dce01e0c3b6c6612ca577bf27b49 /src/filepath.c | |
parent | 1936c765364d6a771cea5df9971318060db82730 (diff) |
patch 9.0.0618: calling function for reduce() has too much overheadv9.0.0618
Problem: Calling function for reduce() has too much overhead.
Solution: Do not create a funccall_T every time.
Diffstat (limited to 'src/filepath.c')
-rw-r--r-- | src/filepath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filepath.c b/src/filepath.c index 373a784f64..673cdb5acc 100644 --- a/src/filepath.c +++ b/src/filepath.c @@ -1609,7 +1609,7 @@ checkitem_common(void *context, char_u *name, dict_T *dict) argv[0].vval.v_dict = dict; } - if (eval_expr_typval(expr, argv, 1, &rettv) == FAIL) + if (eval_expr_typval(expr, argv, 1, NULL, &rettv) == FAIL) goto theend; // We want to use -1, but also true/false should be allowed. |