From 0f6038881f59a644e7ec5fb95385b29a32057b1d Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 22 Dec 2018 14:34:37 -0500 Subject: [PATCH] Handle case sensitivity in config keys correctly --- autoload/fugitive.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index a566e22..05c13d0 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -353,6 +353,7 @@ function! fugitive#Config(...) abort elseif a:0 == 1 let dir = a:1 endif + let name = substitute(name, '^[^.]\+\|[^.]\+$', '\L&', 'g') let key = len(dir) ? dir : '_' if has_key(s:config, key) && s:config[key][0] ==# s:ConfigTimestamps(dir, s:config[key][1]) let dict = s:config[key][1]