mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 15:21:47 +00:00
fix(spell): always accept ':' as filename char in 'spellfile' (#27172)
Follow-up to #25236
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user