commit 349b18d373f19b7b2c6361daaf6d5f2e2f4ebadd (tree) parent 2e67f82b79dac66fb7eea1ed2ca4881a5f265568 Author: Rob Pilling <robpilling@gmail.com> Date: Tue, 18 Feb 2020 18:04:10 +0000 Pull out s:fileignorecase() Diffstat:
| M | autoload/fugitive.vim | | | 6 | +++++- |
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -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)