mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-01-26 12:56:43 +08:00
Add support for 24-bit colors with +termtruecolor flag
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user