diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-22 13:39:08 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-22 13:39:08 +0000 |
commit | 9530b580a7b71960dbbdb2b12a3aafeb540bd135 (patch) | |
tree | 5e169ea9710cf9d3e1f9dade5ff223c2850a7d59 /src/buffer.c | |
parent | 0bfa84916d110d4f4d863e91e144ff05ba431316 (diff) | |
download | vim-git-9530b580a7b71960dbbdb2b12a3aafeb540bd135.tar.gz |
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/buffer.c')
-rw-r--r-- | src/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c index d8d0f3cb5..e50b01d4a 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -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; |