From 82418263fa91792e851cb0de879d1595327d5531 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 28 Sep 2022 16:16:15 +0100 Subject: patch 9.0.0618: calling function for reduce() has too much overhead Problem: Calling function for reduce() has too much overhead. Solution: Do not create a funccall_T every time. --- src/filepath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/filepath.c') 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. -- cgit v1.2.3