mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
path.c: fix path_fnamencmp
Fix the problem that the last comparison of strings when p_fic is true was not ignore case.
This commit is contained in:
parent
6deabca3e7
commit
34d12e7dd7
@ -342,7 +342,7 @@ int path_fnamencmp(const char *const fname1, const char *const fname2,
|
||||
p1 += utfc_ptr2len((const char_u *)p1);
|
||||
p2 += utfc_ptr2len((const char_u *)p2);
|
||||
}
|
||||
return c1 - c2;
|
||||
return p_fic ? CH_FOLD(c1) - CH_FOLD(c2) : c1 - c2;
|
||||
#else
|
||||
if (p_fic) {
|
||||
return mb_strnicmp((const char_u *)fname1, (const char_u *)fname2, len);
|
||||
|
Loading…
Reference in New Issue
Block a user