tabline: Only define Terminal autocommand if vim supports it
fixes the broken CI test which runs in a vim that does not come with terminal support
This commit is contained in:
parent
1d03b9dc62
commit
58bbc512f9
@ -37,7 +37,9 @@ function! airline#extensions#tabline#buffers#on()
|
||||
augroup airline_tabline_buffers
|
||||
autocmd!
|
||||
autocmd BufDelete * call airline#extensions#tabline#buflist#clean()
|
||||
exe 'autocmd '. terminal_event. ' * call airline#extensions#tabline#buflist#clean()'
|
||||
if exists("##".terminal_event)
|
||||
exe 'autocmd '. terminal_event. ' * call airline#extensions#tabline#buflist#clean()'
|
||||
endif
|
||||
autocmd User BufMRUChange call airline#extensions#tabline#buflist#clean()
|
||||
augroup END
|
||||
endfunction
|
||||
|
Loading…
Reference in New Issue
Block a user