From: Bram Moolenaar Date: Sun, 5 May 2019 14:55:03 +0000 (+0200) Subject: patch 8.1.1279: cannot set 'spellang' to "sr@latin" X-Git-Tag: v8.1.1279 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a061cb78ccbf78ec9ae454d37a49edccb4e94fc;p=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 #4342) --- diff --git a/src/option.c b/src/option.c index 9583aa369..657c011b1 100644 --- a/src/option.c +++ b/src/option.c @@ -6057,7 +6057,7 @@ valid_filetype(char_u *val) int valid_spellang(char_u *val) { - return valid_name(val, ".-_,"); + return valid_name(val, ".-_,@"); } /* diff --git a/src/testdir/gen_opt_test.vim b/src/testdir/gen_opt_test.vim index bd3f80ce6..74c725fb8 100644 --- a/src/testdir/gen_opt_test.vim +++ b/src/testdir/gen_opt_test.vim @@ -125,6 +125,7 @@ let test_values = { \ 'sessionoptions': [['', 'blank', 'help,options,slash'], ['xxx']], \ 'signcolumn': [['', 'auto', 'no'], ['xxx', 'no,yes']], \ 'spellfile': [['', 'file.en.add'], ['xxx', '/tmp/file']], + \ 'spelllang': [['', 'xxx', 'sr@latin'], ['not&lang', "that\\\rthere"]], \ 'spellsuggest': [['', 'best', 'double,33'], ['xxx']], \ 'switchbuf': [['', 'useopen', 'split,newtab'], ['xxx']], \ 'tagcase': [['smart', 'match'], ['', 'xxx', 'smart,match']], diff --git a/src/version.c b/src/version.c index 0b47695ee..8ab83c363 100644 --- a/src/version.c +++ b/src/version.c @@ -767,6 +767,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1279, /**/ 1278, /**/