From 1044e0f126c34e16c201d27963baf0dac3cc3405 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 24 Dec 2018 17:25:21 -0500 Subject: [PATCH] Fix config case sensitivity when cached --- autoload/fugitive.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 3805ee0..6306068 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -342,7 +342,8 @@ function! fugitive#Config(...) abort let dir = get(b:, 'git_dir', '') let name = '' if a:0 >= 2 && type(a:2) == type({}) - return len(a:1) ? get(get(a:2, a:1, []), 0, '') : a:2 + let name = substitute(a:1, '^[^.]\+\|[^.]\+$', '\L&', 'g') + return len(a:1) ? get(get(a:2, name, []), 0, '') : a:2 elseif a:0 >= 2 let dir = a:2 let name = a:1