diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-05-04 13:43:23 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-05-04 13:48:52 +0800 |
commit | 7e70a1e44b223a51f4d8f06b9fe4c4ef77601f83 (patch) | |
tree | 293255262ee3b8bb4ad4c5b6079c95930019029d /src/nvim/spell.c | |
parent | a1bd31e6010c803fd842db6bdb0d531a71e67837 (diff) | |
download | rneovim-7e70a1e44b223a51f4d8f06b9fe4c4ef77601f83.tar.gz rneovim-7e70a1e44b223a51f4d8f06b9fe4c4ef77601f83.tar.bz2 rneovim-7e70a1e44b223a51f4d8f06b9fe4c4ef77601f83.zip |
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'.
https://github.com/vim/vim/commit/bc49c5f48f89c2d6f4d88ee77f44a11d68293be3
Cherry-pick related doc update from Vim runtime.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/spell.c')
-rw-r--r-- | src/nvim/spell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c index d1d1b9180f..84875261f1 100644 --- a/src/nvim/spell.c +++ b/src/nvim/spell.c @@ -3621,7 +3621,7 @@ bool valid_spellfile(const char *val) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT { for (const char *s = val; *s != NUL; s++) { - if (!vim_isfilec((uint8_t)(*s)) && *s != ',' && *s != ' ') { + if (!vim_is_fname_char((uint8_t)(*s))) { return false; } } |