Highlight blame hashes if 'termguicolors' is present

This commit is contained in:
Jack Nagel 2017-04-27 21:18:37 -04:00 committed by Tim Pope
parent fbf89773b4
commit 785bb15745

View File

@ -2200,7 +2200,7 @@ endfunction
function! s:RehighlightBlame() abort
for [hash, cterm] in items(s:hash_colors)
if !empty(cterm) || has('gui_running')
if !empty(cterm) || has('gui_running') || has('termguicolors') && &termguicolors
exe 'hi FugitiveblameHash'.hash.' guifg=#'.hash.get(s:hash_colors, hash, '')
else
exe 'hi link FugitiveblameHash'.hash.' Identifier'