Make sure to use the cterm color attribute

This should fix color selection with true-color enabled terminal neovim.
This commit is contained in:
Bastian Winkler 2016-04-12 09:40:00 +02:00
parent 8efc2d29ab
commit 513ed1ff50

View file

@ -58,7 +58,7 @@ endif
function! s:get_color(attr, ...)
for group in a:000
let code = synIDattr(synIDtrans(hlID(group)), a:attr)
let code = synIDattr(synIDtrans(hlID(group)), a:attr, 'cterm')
if code =~ '^[0-9]\+$'
return code
endif