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:
parent
58187f1c8a
commit
9a061cb78c
@ -6057,7 +6057,7 @@ valid_filetype(char_u *val)
|
||||
int
|
||||
valid_spellang(char_u *val)
|
||||
{
|
||||
return valid_name(val, ".-_,");
|
||||
return valid_name(val, ".-_,@");
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -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']],
|
||||
|
@ -767,6 +767,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1279,
|
||||
/**/
|
||||
1278,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user