0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 8.2.4193: cannot use an import in 'charconvert'

Problem:    Cannot use an import in 'charconvert'.
Solution:   Set the script context when evaluating 'charconvert'.  Also expand
            script-local functions in 'charconvert'.
This commit is contained in:
Bram Moolenaar
2022-01-23 14:17:28 +00:00
parent 7ef4a2fe37
commit f4e88f2152
4 changed files with 44 additions and 2 deletions

View File

@@ -2329,8 +2329,7 @@ ambw_end:
# ifdef FEAT_POSTSCRIPT
varp == &p_pexpr ||
# endif
FALSE
)
varp == &p_ccv)
{
char_u **p_opt = NULL;
char_u *name;
@@ -2369,6 +2368,8 @@ ambw_end:
if (varp == &p_pexpr) // 'printexpr'
p_opt = &p_pexpr;
# endif
if (varp == &p_ccv) // 'charconvert'
p_opt = &p_ccv;
if (p_opt != NULL)
{