diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-06-08 19:52:24 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-06-18 18:01:42 -0400 |
commit | ee4265285d517d30caee2581accbc656119b019f (patch) | |
tree | 484783daa62c64633cedc744d111944958b8a2e1 | |
parent | 9d565c5ba3866fd5e754daef26f2937ed8193836 (diff) | |
download | rneovim-ee4265285d517d30caee2581accbc656119b019f.tar.gz rneovim-ee4265285d517d30caee2581accbc656119b019f.tar.bz2 rneovim-ee4265285d517d30caee2581accbc656119b019f.zip |
vim-patch:8.2.0932: missspelling spelllang
Problem: Missspelling spelllang.
Solution: Add an "l". (Dominique Pelle)
https://github.com/vim/vim/commit/f154f3ab2c1eea67afc20140c580ad003752dc72
-rw-r--r-- | src/nvim/option.c | 6 | ||||
-rw-r--r-- | src/nvim/spell.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 55ae0b7003..dc7f3f55ac 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -2545,8 +2545,8 @@ static bool valid_filetype(const char_u *val) return valid_name(val, ".-_"); } -/// Return true if "val" is a valid 'spellang' value. -bool valid_spellang(const char_u *val) +/// Return true if "val" is a valid 'spelllang' value. +bool valid_spelllang(const char_u *val) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT { return valid_name(val, ".-_,@"); @@ -3078,7 +3078,7 @@ ambw_end: const bool is_spellfile = varp == &(curwin->w_s->b_p_spf); if ((is_spellfile && !valid_spellfile(*varp)) - || (!is_spellfile && !valid_spellang(*varp))) { + || (!is_spellfile && !valid_spelllang(*varp))) { errmsg = e_invarg; } else { errmsg = did_set_spell_option(is_spellfile); diff --git a/src/nvim/spell.c b/src/nvim/spell.c index 180073ade1..4d8da1ba14 100644 --- a/src/nvim/spell.c +++ b/src/nvim/spell.c @@ -2007,7 +2007,7 @@ char_u *did_set_spelllang(win_T *wp) region = NULL; len = (int)STRLEN(lang); - if (!valid_spellang(lang)) { + if (!valid_spelllang(lang)) { continue; } |