diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-10-01 19:43:52 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-01 19:43:52 +0100 |
commit | a4e0b9785e409e9e660171cea76dfcc5fdafad9b (patch) | |
tree | 3323913d9bdc9cd09029b1314a77c4a5e8191bbf /src/ex_eval.c | |
parent | b850c39676db21c6f1aa3afed0e2e48d407dd60e (diff) |
patch 9.0.0634: evaluating "expr" options has more overhead than neededv9.0.0634
Problem: Evaluating "expr" options has more overhead than needed.
Solution: Use call_simple_func() for 'foldtext', 'includeexpr', 'printexpr',
"expr" of 'spellsuggest', 'diffexpr', 'patchexpr', 'balloonexpr',
'formatexpr', 'indentexpr' and 'charconvert'.
Diffstat (limited to 'src/ex_eval.c')
-rw-r--r-- | src/ex_eval.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ex_eval.c b/src/ex_eval.c index 77d6e8bb98..e1c28899e1 100644 --- a/src/ex_eval.c +++ b/src/ex_eval.c @@ -1047,7 +1047,7 @@ ex_if(exarg_T *eap) skip = did_emsg || got_int || did_throw || (cstack->cs_idx > 0 && !(cstack->cs_flags[cstack->cs_idx - 1] & CSF_ACTIVE)); - result = eval_to_bool(eap->arg, &error, eap, skip); + result = eval_to_bool(eap->arg, &error, eap, skip, FALSE); if (!skip && !error) { @@ -1176,7 +1176,7 @@ ex_else(exarg_T *eap) if (skip && ends_excmd(*eap->arg)) semsg(_(e_invalid_expression_str), eap->arg); else - result = eval_to_bool(eap->arg, &error, eap, skip); + result = eval_to_bool(eap->arg, &error, eap, skip, FALSE); // When throwing error exceptions, we want to throw always the first // of several errors in a row. This is what actually happens when @@ -1283,7 +1283,7 @@ ex_while(exarg_T *eap) /* * ":while bool-expr" */ - result = eval_to_bool(eap->arg, &error, eap, skip); + result = eval_to_bool(eap->arg, &error, eap, skip, FALSE); } else { |