Handle case sensitivity in config keys correctly
This commit is contained in:
parent
4ecd7e8932
commit
0f6038881f
@ -353,6 +353,7 @@ function! fugitive#Config(...) abort
|
|||||||
elseif a:0 == 1
|
elseif a:0 == 1
|
||||||
let dir = a:1
|
let dir = a:1
|
||||||
endif
|
endif
|
||||||
|
let name = substitute(name, '^[^.]\+\|[^.]\+$', '\L&', 'g')
|
||||||
let key = len(dir) ? dir : '_'
|
let key = len(dir) ? dir : '_'
|
||||||
if has_key(s:config, key) && s:config[key][0] ==# s:ConfigTimestamps(dir, s:config[key][1])
|
if has_key(s:config, key) && s:config[key][0] ==# s:ConfigTimestamps(dir, s:config[key][1])
|
||||||
let dict = s:config[key][1]
|
let dict = s:config[key][1]
|
||||||
|
Loading…
Reference in New Issue
Block a user