fix neovim color mode

This commit is contained in:
Christian Brabandt
2016-02-05 22:19:48 +01:00
parent fdb74f549d
commit 87d60febaf
5 changed files with 19 additions and 10 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') || has('nvim') || (has("termtruecolor") && &guicolors == 1)
if g:airline_gui_mode ==# 'gui'
return color1[1] != color2[1] || color1[0] != color2[0]
else
return color1[3] != color2[3] || color1[2] != color2[2]