mirror of
https://github.com/vim/vim.git
synced 2025-07-25 10:54:51 -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
|
int
|
||||||
valid_spellang(char_u *val)
|
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']],
|
\ 'sessionoptions': [['', 'blank', 'help,options,slash'], ['xxx']],
|
||||||
\ 'signcolumn': [['', 'auto', 'no'], ['xxx', 'no,yes']],
|
\ 'signcolumn': [['', 'auto', 'no'], ['xxx', 'no,yes']],
|
||||||
\ 'spellfile': [['', 'file.en.add'], ['xxx', '/tmp/file']],
|
\ 'spellfile': [['', 'file.en.add'], ['xxx', '/tmp/file']],
|
||||||
|
\ 'spelllang': [['', 'xxx', 'sr@latin'], ['not&lang', "that\\\rthere"]],
|
||||||
\ 'spellsuggest': [['', 'best', 'double,33'], ['xxx']],
|
\ 'spellsuggest': [['', 'best', 'double,33'], ['xxx']],
|
||||||
\ 'switchbuf': [['', 'useopen', 'split,newtab'], ['xxx']],
|
\ 'switchbuf': [['', 'useopen', 'split,newtab'], ['xxx']],
|
||||||
\ 'tagcase': [['smart', 'match'], ['', 'xxx', 'smart,match']],
|
\ 'tagcase': [['smart', 'match'], ['', 'xxx', 'smart,match']],
|
||||||
|
@ -767,6 +767,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1279,
|
||||||
/**/
|
/**/
|
||||||
1278,
|
1278,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user