diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-06-13 20:27:36 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-06-13 20:27:36 +0200 |
commit | 5ffefbb35aba2448099314a9e09714d2f3b2b1bd (patch) | |
tree | e7a38623964613b43058b65f61aa296ec3432c09 /src/mbyte.c | |
parent | 2346a6378483c9871016f9fc821ec5cbea638f13 (diff) | |
download | vim-git-5ffefbb35aba2448099314a9e09714d2f3b2b1bd.tar.gz |
patch 8.2.2993: 'fileencodings' default value should depend on 'encoding'v8.2.2993
Problem: 'fileencodings' default value should depend on 'encoding'. (Gary
Johnson)
Solution: When 'encoding' is "utf-8" use a different default value for
'fileencodings'.
Diffstat (limited to 'src/mbyte.c')
-rw-r--r-- | src/mbyte.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mbyte.c b/src/mbyte.c index 4b78eee0e..fb0c4820b 100644 --- a/src/mbyte.c +++ b/src/mbyte.c @@ -733,8 +733,7 @@ codepage_invalid: // When using Unicode, set default for 'fileencodings'. if (enc_utf8 && !option_was_set((char_u *)"fencs")) - set_string_option_direct((char_u *)"fencs", -1, - (char_u *)"ucs-bom,utf-8,default,latin1", OPT_FREE, 0); + set_fencs_unicode(); #if defined(HAVE_BIND_TEXTDOMAIN_CODESET) && defined(FEAT_GETTEXT) // GNU gettext 0.10.37 supports this feature: set the codeset used for |