aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/strings.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-07-14 07:57:13 +0800
committerGitHub <noreply@github.com>2023-07-14 07:57:13 +0800
commit9176b5e10a6b32ff65c8ba3f532e3bd55c168ec6 (patch)
treec6ad5b716b04547789d252bd2f70882f7d8fad4d /src/nvim/strings.c
parentdbb840da01c72d8a311e0c55d3248d78a64b63a4 (diff)
downloadrneovim-9176b5e10a6b32ff65c8ba3f532e3bd55c168ec6.tar.gz
rneovim-9176b5e10a6b32ff65c8ba3f532e3bd55c168ec6.tar.bz2
rneovim-9176b5e10a6b32ff65c8ba3f532e3bd55c168ec6.zip
fix(runtime): respect 'fileignorecase' when sourcing (#24344)
Diffstat (limited to 'src/nvim/strings.c')
-rw-r--r--src/nvim/strings.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/nvim/strings.c b/src/nvim/strings.c
index 52a803a3cc..6fe2fd8ff3 100644
--- a/src/nvim/strings.c
+++ b/src/nvim/strings.c
@@ -436,25 +436,6 @@ char *vim_strchr(const char *const string, const int c)
}
}
-/// Test if "str" ends with "suffix"
-///
-/// @param[in] str
-/// @param[in] suffix to match
-///
-/// @return [allocated] Copy of the string.
-bool str_ends_with(const char *str, const char *suffix)
-{
- if (!str || !suffix) {
- return false;
- }
- size_t lenstr = strlen(str);
- size_t lensuffix = strlen(suffix);
- if (lensuffix > lenstr) {
- return false;
- }
- return strncmp(str + lenstr - lensuffix, suffix, lensuffix) == 0;
-}
-
// Sort an array of strings.
#ifdef INCLUDE_GENERATED_DECLARATIONS