aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/garray.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-09-10 14:33:43 +0200
committerGitHub <noreply@github.com>2022-09-10 14:33:43 +0200
commit4638fcf4fb688fa548b8ce337ec3b7c1327fbfe9 (patch)
treeb62862e24e506e0010852d23b68c79103637500c /src/nvim/garray.c
parent40f9f479b746d0f76fbdd4bc0567d593ca7a6070 (diff)
parent684bc749efef0fa31395d349f4495d79ec5f3fd5 (diff)
downloadrneovim-4638fcf4fb688fa548b8ce337ec3b7c1327fbfe9.tar.gz
rneovim-4638fcf4fb688fa548b8ce337ec3b7c1327fbfe9.tar.bz2
rneovim-4638fcf4fb688fa548b8ce337ec3b7c1327fbfe9.zip
Merge pull request #20068 from dundargoc/refactor/char_u/10
refactor: replace char_u with char 10: remove `FNAMECMP`, `FNAMENCMP` and `STRLCAT`
Diffstat (limited to 'src/nvim/garray.c')
-rw-r--r--src/nvim/garray.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/garray.c b/src/nvim/garray.c
index 1afabe4e10..adc3eda5ca 100644
--- a/src/nvim/garray.c
+++ b/src/nvim/garray.c
@@ -123,7 +123,7 @@ void ga_remove_duplicate_strings(garray_T *gap)
// loop over the growing array in reverse
for (int i = gap->ga_len - 1; i > 0; i--) {
- if (FNAMECMP(fnames[i - 1], fnames[i]) == 0) {
+ if (path_fnamecmp(fnames[i - 1], fnames[i]) == 0) {
xfree(fnames[i]);
// close the gap (move all strings one slot lower)