mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -05:00
Pull out s:fileignorecase()
This commit is contained in:
@@ -117,8 +117,12 @@ function! s:Resolve(path) abort
|
||||
return path
|
||||
endfunction
|
||||
|
||||
function! s:FileIgnoreCase() abort
|
||||
return exists('+fileignorecase') && &fileignorecase
|
||||
endfunction
|
||||
|
||||
function! s:cpath(path, ...) abort
|
||||
if exists('+fileignorecase') && &fileignorecase
|
||||
if s:FileIgnoreCase()
|
||||
let path = FugitiveVimPath(tolower(a:path))
|
||||
else
|
||||
let path = FugitiveVimPath(a:path)
|
||||
|
||||
Reference in New Issue
Block a user