summaryrefslogtreecommitdiffstats
path: root/src/findfile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-22 13:39:08 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-22 13:39:08 +0000
commit9530b580a7b71960dbbdb2b12a3aafeb540bd135 (patch)
tree5e169ea9710cf9d3e1f9dade5ff223c2850a7d59 /src/findfile.c
parent0bfa84916d110d4f4d863e91e144ff05ba431316 (diff)
patch 8.2.4179: 'foldtext' is evaluated in the current script contextv8.2.4179
Problem: 'foldtext' is evaluated in the current script context. Solution: Use the script context where the option was set.
Diffstat (limited to 'src/findfile.c')
-rw-r--r--src/findfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/findfile.c b/src/findfile.c
index 110e06b1d6..3a6484574e 100644
--- a/src/findfile.c
+++ b/src/findfile.c
@@ -2097,7 +2097,7 @@ eval_includeexpr(char_u *ptr, int len)
set_vim_var_string(VV_FNAME, ptr, len);
res = eval_to_string_safe(curbuf->b_p_inex,
- was_set_insecurely((char_u *)"includeexpr", OPT_LOCAL));
+ was_set_insecurely((char_u *)"includeexpr", OPT_LOCAL), FALSE);
set_vim_var_string(VV_FNAME, NULL, 0);
return res;
}