0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

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

@@ -4162,7 +4162,7 @@ build_stl_str_hl(
tv.vval.v_number = wp->w_id;
set_var((char_u *)"g:statusline_winid", &tv, FALSE);
usefmt = eval_to_string_safe(fmt + 2, use_sandbox);
usefmt = eval_to_string_safe(fmt + 2, use_sandbox, FALSE);
if (usefmt == NULL)
usefmt = fmt;
@@ -4546,7 +4546,7 @@ build_stl_str_hl(
if (curwin != save_curwin)
VIsual_active = FALSE;
str = eval_to_string_safe(p, use_sandbox);
str = eval_to_string_safe(p, use_sandbox, FALSE);
curwin = save_curwin;
curbuf = save_curbuf;