Fix config case sensitivity when cached

This commit is contained in:
Tim Pope 2018-12-24 17:25:21 -05:00
parent d4eba85499
commit 1044e0f126

View File

@ -342,7 +342,8 @@ function! fugitive#Config(...) abort
let dir = get(b:, 'git_dir', '') let dir = get(b:, 'git_dir', '')
let name = '' let name = ''
if a:0 >= 2 && type(a:2) == type({}) 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 elseif a:0 >= 2
let dir = a:2 let dir = a:2
let name = a:1 let name = a:1