diff options
| -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;      } | 
