From 349b18d373f19b7b2c6361daaf6d5f2e2f4ebadd Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Tue, 18 Feb 2020 18:04:10 +0000 Subject: [PATCH] Pull out s:fileignorecase() --- autoload/fugitive.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index d2c04ce..ad43957 100644 --- 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)