From 942c6ae382390421edad259edb09a441ae76540b Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Tue, 25 Feb 2014 20:34:52 -0500 Subject: [PATCH] reset current buffer when one gets deleted. resolves #399 --- autoload/airline/extensions/tabline.vim | 1 + 1 file changed, 1 insertion(+) 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')