Support Vim without 'wildignorecase'

Closes #659.
This commit is contained in:
Tim Pope
2015-07-01 10:55:35 -04:00
parent b5b2548a87
commit 7c4a906147

View File

@@ -558,7 +558,7 @@ function! s:buffer_commit() dict abort
endfunction
function! s:cpath(path) abort
if exists('+fileignorecase') ? &fileignorecase : &wildignorecase
if exists('+fileignorecase') && &fileignorecase
return tolower(a:path)
else
return a:path