tabline: Use separate hi group for label on right

if the same highlighting group is used on the left and right for the
label, the `airline_tablabel_to_airline_tabmod` will be overwritten on
the right side, causing the fg/bg colors to be wrong, because on the
right side they have to be the opposite of the left side.

So use a separate highlighting group for the tablabel on the right.

closes #1902
This commit is contained in:
Christian Brabandt
2019-04-17 09:04:56 +02:00
parent d1d9548b8e
commit 6acb234a12
3 changed files with 10 additions and 6 deletions

View File

@@ -69,7 +69,7 @@ function! airline#extensions#tabline#buffers#get()
let show_buf_label_first = 1
endif
if show_buf_label_first
call airline#extensions#tabline#add_label(b, 'buffers')
call airline#extensions#tabline#add_label(b, 'buffers', 0)
endif
let b.tab_bufs = tabpagebuflist(tabpagenr())
@@ -137,7 +137,7 @@ function! airline#extensions#tabline#buffers#get()
call b.split()
call b.add_section('airline_tabfill', '')
if !show_buf_label_first
call airline#extensions#tabline#add_label(b, 'buffers')
call airline#extensions#tabline#add_label(b, 'buffers', 1)
endif
call airline#extensions#tabline#add_tab_label(b)