0
0
mirror of https://github.com/vim/vim.git synced 2025-07-24 10:45:12 -04:00

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)
This commit is contained in:
Bram Moolenaar 2019-05-05 16:55:03 +02:00
parent 58187f1c8a
commit 9a061cb78c
3 changed files with 4 additions and 1 deletions

View File

@ -6057,7 +6057,7 @@ valid_filetype(char_u *val)
int
valid_spellang(char_u *val)
{
return valid_name(val, ".-_,");
return valid_name(val, ".-_,@");
}
/*

View File

@ -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']],

View File

@ -767,6 +767,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1279,
/**/
1278,
/**/