summaryrefslogtreecommitdiffstats
path: root/src/findfile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-10-01 19:43:52 +0100
committerBram Moolenaar <Bram@vim.org>2022-10-01 19:43:52 +0100
commita4e0b9785e409e9e660171cea76dfcc5fdafad9b (patch)
tree3323913d9bdc9cd09029b1314a77c4a5e8191bbf /src/findfile.c
parentb850c39676db21c6f1aa3afed0e2e48d407dd60e (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/findfile.c')
-rw-r--r--src/findfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/findfile.c b/src/findfile.c
index 5751a07270..9ce733cfd6 100644
--- a/src/findfile.c
+++ b/src/findfile.c
@@ -2002,7 +2002,8 @@ eval_includeexpr(char_u *ptr, int len)
current_sctx = curbuf->b_p_script_ctx[BV_INEX];
res = eval_to_string_safe(curbuf->b_p_inex,
- was_set_insecurely((char_u *)"includeexpr", OPT_LOCAL), TRUE);
+ was_set_insecurely((char_u *)"includeexpr", OPT_LOCAL),
+ TRUE, TRUE);
set_vim_var_string(VV_FNAME, NULL, 0);
current_sctx = save_sctx;