1
0
forked from aniani/vim

patch 9.0.0138: not enough characters accepted for 'spellfile'

Problem:    Not enough characters accepted for 'spellfile'.
Solution:   Add vim_is_fname_char() and use it for 'spellfile'.
This commit is contained in:
Bram Moolenaar
2022-08-04 13:01:48 +01:00
parent db7a88db8b
commit bc49c5f48f
5 changed files with 27 additions and 3 deletions

View File

@@ -4363,7 +4363,7 @@ valid_spellfile(char_u *val)
char_u *s;
for (s = val; *s != NUL; ++s)
if (!vim_isfilec(*s) && *s != ',' && *s != ' ')
if (!vim_is_fname_char(*s))
return FALSE;
return TRUE;
}