mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 13:53:51 -05:00
Correctly treat config keys without values as true
This commit is contained in:
@@ -639,7 +639,11 @@ function! fugitive#Config(...) abort
|
|||||||
if !has_key(dict, key)
|
if !has_key(dict, key)
|
||||||
let dict[key] = []
|
let dict[key] = []
|
||||||
endif
|
endif
|
||||||
call add(dict[key], strpart(line, len(key) + 1))
|
if len(key) ==# len(line)
|
||||||
|
call add(dict[key], 1)
|
||||||
|
else
|
||||||
|
call add(dict[key], strpart(line, len(key) + 1))
|
||||||
|
endif
|
||||||
endfor
|
endfor
|
||||||
let s:config[dir] = [s:ConfigTimestamps(dir, dict), dict]
|
let s:config[dir] = [s:ConfigTimestamps(dir, dict), dict]
|
||||||
lockvar! dict
|
lockvar! dict
|
||||||
|
|||||||
Reference in New Issue
Block a user