diff options
author | Scott Prager <splinterofchaos@gmail.com> | 2014-09-20 22:39:31 -0400 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-03-31 11:20:23 -0300 |
commit | 0f4976687d0dfc3a0992195219586be93e49dc9e (patch) | |
tree | 7869a4aa3cb88f79cdc75d4282673b230088a6f0 /src/nvim/main.c | |
parent | 24da0d49d0a0e576fed6cbd699e40380d5c31322 (diff) | |
download | rneovim-0f4976687d0dfc3a0992195219586be93e49dc9e.tar.gz rneovim-0f4976687d0dfc3a0992195219586be93e49dc9e.tar.bz2 rneovim-0f4976687d0dfc3a0992195219586be93e49dc9e.zip |
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.
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r-- | src/nvim/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c index 55935564b8..a03fd2e8a9 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -1290,8 +1290,8 @@ scripterror: } #ifdef USE_FNAME_CASE - /* Make the case of the file name match the actual file. */ - fname_case(p, 0); + // Make the case of the file name match the actual file. + path_fix_case(p); #endif alist_add(&global_alist, p, |