diff --git a/autoload/airline/extensions/tabline.vim b/autoload/airline/extensions/tabline.vim index 90aff5d..3c9dc1a 100644 --- a/autoload/airline/extensions/tabline.vim +++ b/autoload/airline/extensions/tabline.vim @@ -31,6 +31,7 @@ function! airline#extensions#tabline#init(ext) autocmd User AirlineToggledOn call s:toggle_on() autocmd User AirlineToggledOff call s:toggle_off() + autocmd BufDelete * let s:current_bufnr = -1 call s:toggle_on() call a:ext.add_theme_func('airline#extensions#tabline#load_theme')