diff options
author | K.Takata <kentkt@csc.jp> | 2023-02-15 19:13:43 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-02-15 19:13:43 +0000 |
commit | ce3189d56e867a2ffc077893b62f530d5b09150f (patch) | |
tree | 52d7934c1c7c1a85fe3c1a62c24ad0ceb1d2b5b9 /src/optionstr.c | |
parent | bc3dc298b37820a8212e7d839e882e07d6cc98c8 (diff) |
patch 9.0.1313: some settings use the current codepage instead of 'encoding'v9.0.1313
Problem: Some settings use the current codepage instead of 'encoding'.
Solution: Adjust how options are initialized. (Ken Takata, closes #11992)
Diffstat (limited to 'src/optionstr.c')
-rw-r--r-- | src/optionstr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/optionstr.c b/src/optionstr.c index 6c9fd3ab32..8acbbf7c98 100644 --- a/src/optionstr.c +++ b/src/optionstr.c @@ -1054,9 +1054,12 @@ did_set_encoding(char_u **varp, char_u **gvarp, int opt_flags) } #if defined(MSWIN) - // $HOME may have characters in active code page. + // $HOME, $VIM and $VIMRUNTIME may have characters in active code page. if (varp == &p_enc) + { init_homedir(); + init_vimdir(); + } #endif } |