Add support for 24-bit colors with +termtruecolor flag

This commit is contained in:
Claudia Hardman
2015-02-16 12:00:52 -05:00
parent ca925efdbf
commit ac58bc9954
2 changed files with 5 additions and 5 deletions

View File

@@ -77,7 +77,7 @@ function! s:should_change_group(group1, group2)
endif
let color1 = airline#highlighter#get_highlight(a:group1)
let color2 = airline#highlighter#get_highlight(a:group2)
if has('gui_running')
if has('gui_running') || (has("termtruecolor") && &guicolors == 1)
return color1[1] != color2[1] || color1[0] != color2[0]
else
return color1[3] != color2[3] || color1[2] != color2[2]