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 vim/vim#7230)
b2620202c7
This commit is contained in:
Jan Edmund Lazo 2020-10-30 20:01:43 -04:00
parent 925ddd2839
commit bbaf721fc3
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -2566,7 +2566,7 @@ static bool valid_spellfile(const char_u *val)
FUNC_ATTR_NONNULL_ALL FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT
{
for (const char_u *s = val; *s != NUL; s++) {
if (!vim_isfilec(*s) && *s != ',') {
if (!vim_isfilec(*s) && *s != ',' && *s != ' ') {
return false;
}
}