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:
Christian Brabandt 2019-02-03 10:43:23 +01:00
parent 1d03b9dc62
commit 58bbc512f9
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
1 changed files with 3 additions and 1 deletions

View File

@ -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