aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/spell.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-05-04 14:44:13 +0800
committerGitHub <noreply@github.com>2023-05-04 14:44:13 +0800
commit24d4a825693db5f8454a389259a76f71f8697832 (patch)
treeef2a8f106faec12f3ba4d9e67a6be4db04fa3e43 /src/nvim/spell.c
parenta1bd31e6010c803fd842db6bdb0d531a71e67837 (diff)
parent7ddf235d7e71ee8373b11baa6a49381311f5d61d (diff)
downloadrneovim-24d4a825693db5f8454a389259a76f71f8697832.tar.gz
rneovim-24d4a825693db5f8454a389259a76f71f8697832.tar.bz2
rneovim-24d4a825693db5f8454a389259a76f71f8697832.zip
Merge pull request #23466 from zeertzjq/vim-9.0.0138
vim-patch:9.0.{0138,0240}: two spell fixes
Diffstat (limited to 'src/nvim/spell.c')
-rw-r--r--src/nvim/spell.c2
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;
}
}