Support older Vim without 'fileignorecase'

This commit is contained in:
Tim Pope 2015-06-30 20:39:54 -04:00
parent ca727b07f1
commit b5b2548a87

View File

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