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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user