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