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