mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 11:26:37 +00:00
os_scandir: fname_case -> path_fix_case
Use os_scandir(). fname_case() only gets used when `defined(USE_FNAME_CASE)` (on operating systems with case-insensitive file systems), but may be useful in other contexts, so move it to path.c. (See the TODO.) Remove the unused parameter, len.
This commit is contained in:

committed by
Thiago de Arruda

parent
24da0d49d0
commit
0f4976687d
@@ -2253,7 +2253,7 @@ setfname (
|
||||
}
|
||||
sfname = vim_strsave(sfname);
|
||||
#ifdef USE_FNAME_CASE
|
||||
fname_case(sfname, 0); /* set correct case for short file name */
|
||||
path_fix_case(sfname); /* set correct case for short file name */
|
||||
#endif
|
||||
free(buf->b_ffname);
|
||||
free(buf->b_sfname);
|
||||
|
Reference in New Issue
Block a user