diff --git a/autoload/airline/extensions/tabline/buffers.vim b/autoload/airline/extensions/tabline/buffers.vim index a59025e..fb6043b 100644 --- a/autoload/airline/extensions/tabline/buffers.vim +++ b/autoload/airline/extensions/tabline/buffers.vim @@ -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