mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
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:
parent
925ddd2839
commit
bbaf721fc3
@ -2566,7 +2566,7 @@ static bool valid_spellfile(const char_u *val)
|
|||||||
FUNC_ATTR_NONNULL_ALL FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT
|
FUNC_ATTR_NONNULL_ALL FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT
|
||||||
{
|
{
|
||||||
for (const char_u *s = val; *s != NUL; s++) {
|
for (const char_u *s = val; *s != NUL; s++) {
|
||||||
if (!vim_isfilec(*s) && *s != ',') {
|
if (!vim_isfilec(*s) && *s != ',' && *s != ' ') {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user