mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-10 04:23:46 -05:00
Highlight blame hashes if 'termguicolors' is present
This commit is contained in:
@@ -2200,7 +2200,7 @@ endfunction
|
|||||||
|
|
||||||
function! s:RehighlightBlame() abort
|
function! s:RehighlightBlame() abort
|
||||||
for [hash, cterm] in items(s:hash_colors)
|
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, '')
|
exe 'hi FugitiveblameHash'.hash.' guifg=#'.hash.get(s:hash_colors, hash, '')
|
||||||
else
|
else
|
||||||
exe 'hi link FugitiveblameHash'.hash.' Identifier'
|
exe 'hi link FugitiveblameHash'.hash.' Identifier'
|
||||||
|
|||||||
Reference in New Issue
Block a user