diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-11-06 13:58:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-06 13:58:22 +0100 |
commit | 769d164c70bee1877d101447ba41730147a2f127 (patch) | |
tree | 924ee5e39a76d7c0efc0602f9a0f65a22fef6c78 /src/nvim/option.c | |
parent | f08869cff2eae65eede8df41fab274c77dd76c60 (diff) | |
parent | e0d6894a54b0ed263d8c93197e50ad5fca641f08 (diff) | |
download | rneovim-769d164c70bee1877d101447ba41730147a2f127.tar.gz rneovim-769d164c70bee1877d101447ba41730147a2f127.tar.bz2 rneovim-769d164c70bee1877d101447ba41730147a2f127.zip |
Merge pull request #9206 from janlazo/vim-8.1.0510
vim-patch:8.1.{510,512}
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index a0fb2d9e36..4fa99424e8 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -1068,6 +1068,10 @@ void set_helplang_default(const char *lang) if (STRNICMP(p_hlg, "zh_", 3) == 0 && STRLEN(p_hlg) >= 5) { p_hlg[0] = (char_u)TOLOWER_ASC(p_hlg[3]); p_hlg[1] = (char_u)TOLOWER_ASC(p_hlg[4]); + } else if (STRLEN(p_hlg) >= 1 && *p_hlg == 'C') { + // any C like setting, such as C.UTF-8, becomes "en" + p_hlg[0] = 'e'; + p_hlg[1] = 'n'; } p_hlg[2] = NUL; options[idx].flags |= P_ALLOCED; |