From 63d8f08b0b04edd110c1b81d0a6e0c3d29ad4464 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Tue, 3 Mar 2020 03:51:57 -0500 Subject: vim-patch:8.1.1279: cannot set 'spellang' to "sr@latin" Problem: Cannot set 'spellang' to "sr@latin". (Bojan Stipic) Solution: Allow using '@' in 'spellang'. (closes vim/vim#4342) https://github.com/vim/vim/commit/9a061cb78ccbf78ec9ae454d37a49edccb4e94fc --- src/nvim/option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/option.c') diff --git a/src/nvim/option.c b/src/nvim/option.c index 8c9c326a28..5a27ff21cc 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -2568,7 +2568,7 @@ static bool valid_filetype(const char_u *val) bool valid_spellang(const char_u *val) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT { - return valid_name(val, ".-_,"); + return valid_name(val, ".-_,@"); } /// Return true if "val" is a valid 'spellfile' value. -- cgit