mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 08:28:34 +00:00
Merge pull request #14004 from erw7/fix-fic
option: fix problem with fileignorecase not being set properly
This commit is contained in:
@@ -4131,7 +4131,9 @@ static void f_has(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
#ifdef _WIN64
|
||||
"win64",
|
||||
#endif
|
||||
#ifndef CASE_INSENSITIVE_FILENAME
|
||||
"fname_case",
|
||||
#endif
|
||||
#ifdef HAVE_ACL
|
||||
"acl",
|
||||
#endif
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user