mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 05:43:52 -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)
|
||||
let dict[key] = []
|
||||
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
|
||||
let s:config[dir] = [s:ConfigTimestamps(dir, dict), dict]
|
||||
lockvar! dict
|
||||
|
||||
Reference in New Issue
Block a user