diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-23 14:17:28 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-23 14:17:28 +0000 |
commit | f4e88f2152c5975a6f4cfa7ccd745575fe4d1c78 (patch) | |
tree | 80ce52cd0d1ce029cba5689d29b954080083ec31 /src/optionstr.c | |
parent | 7ef4a2fe3736bbeb5bad182782a74576aa06b0db (diff) | |
download | vim-git-f4e88f2152c5975a6f4cfa7ccd745575fe4d1c78.tar.gz |
patch 8.2.4193: cannot use an import in 'charconvert'v8.2.4193
Problem: Cannot use an import in 'charconvert'.
Solution: Set the script context when evaluating 'charconvert'. Also expand
script-local functions in 'charconvert'.
Diffstat (limited to 'src/optionstr.c')
-rw-r--r-- | src/optionstr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/optionstr.c b/src/optionstr.c index 94a1e2a24..4aa7cef5e 100644 --- a/src/optionstr.c +++ b/src/optionstr.c @@ -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) { |