Mercurial > vim
comparison src/findfile.c @ 27301:ebe56a24acb6 v8.2.4179
patch 8.2.4179: 'foldtext' is evaluated in the current script context
Commit: https://github.com/vim/vim/commit/9530b580a7b71960dbbdb2b12a3aafeb540bd135
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 22 13:39:08 2022 +0000
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 22 Jan 2022 14:45:02 +0100 |
parents | c9474ae175f4 |
children | b3ef31c6a922 |
comparison
equal
deleted
inserted
replaced
27300:160b87e56c45 | 27301:ebe56a24acb6 |
---|---|
2095 { | 2095 { |
2096 char_u *res; | 2096 char_u *res; |
2097 | 2097 |
2098 set_vim_var_string(VV_FNAME, ptr, len); | 2098 set_vim_var_string(VV_FNAME, ptr, len); |
2099 res = eval_to_string_safe(curbuf->b_p_inex, | 2099 res = eval_to_string_safe(curbuf->b_p_inex, |
2100 was_set_insecurely((char_u *)"includeexpr", OPT_LOCAL)); | 2100 was_set_insecurely((char_u *)"includeexpr", OPT_LOCAL), FALSE); |
2101 set_vim_var_string(VV_FNAME, NULL, 0); | 2101 set_vim_var_string(VV_FNAME, NULL, 0); |
2102 return res; | 2102 return res; |
2103 } | 2103 } |
2104 # endif | 2104 # endif |
2105 | 2105 |