diff options
author | dundargoc <gocdundar@gmail.com> | 2024-07-09 16:34:43 +0200 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-07-10 10:44:03 +0200 |
commit | 3c5abf01bfab6135cb821046eb229c0af51498b4 (patch) | |
tree | 0504302d2f95b6e81e186e281d87695f6d06f8fb /src/nvim/path.c | |
parent | 420822317556968f09179c1e196670762f53a03e (diff) | |
download | rneovim-3c5abf01bfab6135cb821046eb229c0af51498b4.tar.gz rneovim-3c5abf01bfab6135cb821046eb229c0af51498b4.tar.bz2 rneovim-3c5abf01bfab6135cb821046eb229c0af51498b4.zip |
refactor: remove CH_FOLD macro
It should not be needed as utf_fold should already work on its own.
Diffstat (limited to 'src/nvim/path.c')
-rw-r--r-- | src/nvim/path.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/path.c b/src/nvim/path.c index aa630038a8..1643264fee 100644 --- a/src/nvim/path.c +++ b/src/nvim/path.c @@ -390,14 +390,14 @@ int path_fnamencmp(const char *const fname1, const char *const fname2, size_t le c2 = utf_ptr2char(p2); if ((c1 == NUL || c2 == NUL || (!((c1 == '/' || c1 == '\\') && (c2 == '\\' || c2 == '/')))) - && (p_fic ? (c1 != c2 && CH_FOLD(c1) != CH_FOLD(c2)) : c1 != c2)) { + && (p_fic ? (c1 != c2 && utf_fold(c1) != utf_fold(c2)) : c1 != c2)) { break; } len -= (size_t)utfc_ptr2len(p1); p1 += utfc_ptr2len(p1); p2 += utfc_ptr2len(p2); } - return p_fic ? CH_FOLD(c1) - CH_FOLD(c2) : c1 - c2; + return p_fic ? utf_fold(c1) - utf_fold(c2) : c1 - c2; #else if (p_fic) { return mb_strnicmp(fname1, fname2, len); |