1
0
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:
Bram Moolenaar
2020-10-30 19:25:09 +01:00
parent 6d967125ad
commit b2620202c7
3 changed files with 4 additions and 2 deletions

View File

@@ -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;
}