mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-01-01 17:13:21 +08:00
highlight: skip processing the same hi group twice
Shouldn't happen, but just in case skip creating highlighting group, if the same group with the same attributes has already been defined.
This commit is contained in:
@@ -118,13 +118,18 @@ function! airline#extensions#tabline#get()
|
||||
if !exists('#airline#BufAdd#*')
|
||||
autocmd airline BufAdd * call <sid>update_tabline()
|
||||
endif
|
||||
if s:ctrlspace
|
||||
return airline#extensions#tabline#ctrlspace#get()
|
||||
elseif s:show_buffers && curtabcnt == 1 || !s:show_tabs
|
||||
return airline#extensions#tabline#buffers#get()
|
||||
else
|
||||
return airline#extensions#tabline#tabs#get()
|
||||
endif
|
||||
try
|
||||
let g:airline_theme_dict = {}
|
||||
if s:ctrlspace
|
||||
return airline#extensions#tabline#ctrlspace#get()
|
||||
elseif s:show_buffers && curtabcnt == 1 || !s:show_tabs
|
||||
return airline#extensions#tabline#buffers#get()
|
||||
else
|
||||
return airline#extensions#tabline#tabs#get()
|
||||
endif
|
||||
finally
|
||||
unlet g:airline_theme_dict
|
||||
endtry
|
||||
endfunction
|
||||
|
||||
function! airline#extensions#tabline#title(n)
|
||||
|
||||
Reference in New Issue
Block a user