reset w:airline_active variable on TabEnter

fixes #1159
This commit is contained in:
Christian Brabandt 2016-05-13 14:41:31 +02:00
parent 99cd26cda4
commit eef069d7bc

View File

@ -91,7 +91,7 @@ function! s:airline_toggle()
\ call <sid>on_window_changed()
autocmd VimResized * call <sid>airline_refresh()
autocmd TabEnter * :unlet! w:airline_lastmode
autocmd TabEnter * :unlet! w:airline_lastmode w:airline_active
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()