forked from aniani/vim
patch 8.2.1926: cannot use a space in 'spellfile'
Problem: Cannot use a space in 'spellfile'. (Filipe Brandenburger) Solution: Permit using a space. (closes #7230)
This commit is contained in:
@@ -4340,7 +4340,7 @@ valid_spellfile(char_u *val)
|
||||
char_u *s;
|
||||
|
||||
for (s = val; *s != NUL; ++s)
|
||||
if (!vim_isfilec(*s) && *s != ',')
|
||||
if (!vim_isfilec(*s) && *s != ',' && *s != ' ')
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
|
@@ -130,7 +130,7 @@ let test_values = {
|
||||
\ 'selectmode': [['', 'mouse', 'key,cmd'], ['xxx']],
|
||||
\ 'sessionoptions': [['', 'blank', 'help,options,slash'], ['xxx']],
|
||||
\ 'signcolumn': [['', 'auto', 'no'], ['xxx', 'no,yes']],
|
||||
\ 'spellfile': [['', 'file.en.add'], ['xxx', '/tmp/file']],
|
||||
\ 'spellfile': [['', 'file.en.add', '/tmp/dir\ with\ space/en.utf-8.add'], ['xxx', '/tmp/file']],
|
||||
\ 'spelllang': [['', 'xxx', 'sr@latin'], ['not&lang', "that\\\rthere"]],
|
||||
\ 'spelloptions': [['', 'camel'], ['xxx']],
|
||||
\ 'spellsuggest': [['', 'best', 'double,33'], ['xxx']],
|
||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1926,
|
||||
/**/
|
||||
1925,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user