aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/charset.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-01-24 18:13:39 +0800
committerGitHub <noreply@github.com>2024-01-24 18:13:39 +0800
commit8c044f0862f417a525eaf319471c286a5588d493 (patch)
tree8ee5e756e7427fc175adf074e601bcf1c528bd15 /src/nvim/charset.c
parent0c1119ac7581e99d970b194d969b8776255cff44 (diff)
downloadrneovim-8c044f0862f417a525eaf319471c286a5588d493.tar.gz
rneovim-8c044f0862f417a525eaf319471c286a5588d493.tar.bz2
rneovim-8c044f0862f417a525eaf319471c286a5588d493.zip
fix(spell): always accept ':' as filename char in 'spellfile' (#27172)
Follow-up to #25236
Diffstat (limited to 'src/nvim/charset.c')
-rw-r--r--src/nvim/charset.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/charset.c b/src/nvim/charset.c
index 81a42e619c..20bd364c7e 100644
--- a/src/nvim/charset.c
+++ b/src/nvim/charset.c
@@ -849,11 +849,11 @@ bool vim_isfilec(int c)
}
/// Check if "c" is a valid file-name character, including characters left
-/// out of 'isfname' to make "gf" work, such as comma, space, '@', etc.
+/// out of 'isfname' to make "gf" work, such as ',', ' ', '@', ':', etc.
bool vim_is_fname_char(int c)
FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT
{
- return vim_isfilec(c) || c == ',' || c == ' ' || c == '@';
+ return vim_isfilec(c) || c == ',' || c == ' ' || c == '@' || c == ':';
}
/// Check that "c" is a valid file-name character or a wildcard character