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)
diff --git a/src/spell.c b/src/spell.c
index 085f317..b474a38 100644
--- a/src/spell.c
+++ b/src/spell.c
@@ -4340,7 +4340,7 @@
char_u *s;
for (s = val; *s != NUL; ++s)
- if (!vim_isfilec(*s) && *s != ',')
+ if (!vim_isfilec(*s) && *s != ',' && *s != ' ')
return FALSE;
return TRUE;
}
diff --git a/src/testdir/gen_opt_test.vim b/src/testdir/gen_opt_test.vim
index 600a790..abf11fc 100644
--- a/src/testdir/gen_opt_test.vim
+++ b/src/testdir/gen_opt_test.vim
@@ -130,7 +130,7 @@
\ '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']],
diff --git a/src/version.c b/src/version.c
index abdebda..96a9430 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1926,
+/**/
1925,
/**/
1924,