From 41df6668c750566c25379293cc46cc4b23068f23 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Thu, 23 Jun 2016 17:52:17 +0200 Subject: [PATCH] Reset w:airline_active on TabEnter fixes #1182 --- plugin/airline.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/airline.vim b/plugin/airline.vim index 6a5a288..6ebc13b 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -91,7 +91,7 @@ function! s:airline_toggle() \ call on_window_changed() autocmd VimResized * unlet! w:airline_lastmode | :call airline_refresh() - autocmd TabEnter * :unlet! w:airline_lastmode w:airline_active + autocmd TabEnter * :unlet! w:airline_lastmode | let w:airline_active=1 autocmd BufWritePost */autoload/airline/themes/*.vim \ exec 'source '.split(globpath(&rtp, 'autoload/airline/themes/'.g:airline_theme.'.vim', 1), "\n")[0] \ | call airline#load_theme()