diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-11-05 20:06:26 -0500 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-11-05 20:08:47 -0500 |
commit | bd6866f90b6cf7334a9f0d160be6f3b1e5157d51 (patch) | |
tree | 856df29b1542549562d20c28b3589a340f1b4a87 /src | |
parent | 5320eb57df01e57ace29ab841d6f912bc2c88ade (diff) | |
download | rneovim-bd6866f90b6cf7334a9f0d160be6f3b1e5157d51.tar.gz rneovim-bd6866f90b6cf7334a9f0d160be6f3b1e5157d51.tar.bz2 rneovim-bd6866f90b6cf7334a9f0d160be6f3b1e5157d51.zip |
vim-patch:8.1.0510: filter test fails when $LANG is C.UTF-8
Problem: Filter test fails when $LANG is C.UTF-8.
Solution: Set 'helplang' to "en" for any C language. (Christian Brabandt,
closes vim/vim#3577)
https://github.com/vim/vim/commit/dcd71cbaedf75dd8e5c5a45c5c2e3ec7ee552dce
Diffstat (limited to 'src')
-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; |