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/option.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/option.c')
-rw-r--r-- | src/option.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/option.c b/src/option.c index 1b581ed355..2332f2a388 100644 --- a/src/option.c +++ b/src/option.c @@ -600,6 +600,8 @@ set_init_1(int clean_arg) init_spell_chartab(); #endif + set_init_default_encoding(); + // Expand environment variables and things like "~" for the defaults. set_init_expand_env(); @@ -618,7 +620,6 @@ set_init_1(int clean_arg) didset_options2(); set_init_lang_env(); - set_init_default_encoding(); #ifdef FEAT_MULTI_LANG // Set the default for 'helplang'. |