1
0
forked from aniani/vim

patch 8.2.4179: 'foldtext' is evaluated in the current script context

Problem:    'foldtext' is evaluated in the current script context.
Solution:   Use the script context where the option was set.
This commit is contained in:
Bram Moolenaar
2022-01-22 13:39:08 +00:00
parent 0bfa84916d
commit 9530b580a7
7 changed files with 24 additions and 13 deletions

View File

@@ -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;
}