Reset w:airline_active on TabEnter

fixes #1182
This commit is contained in:
Christian Brabandt 2016-06-23 17:52:17 +02:00
parent 64f06309b1
commit 41df6668c7

View File

@ -91,7 +91,7 @@ function! s:airline_toggle()
\ call <sid>on_window_changed() \ call <sid>on_window_changed()
autocmd VimResized * unlet! w:airline_lastmode | :call <sid>airline_refresh() autocmd VimResized * unlet! w:airline_lastmode | :call <sid>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 autocmd BufWritePost */autoload/airline/themes/*.vim
\ exec 'source '.split(globpath(&rtp, 'autoload/airline/themes/'.g:airline_theme.'.vim', 1), "\n")[0] \ exec 'source '.split(globpath(&rtp, 'autoload/airline/themes/'.g:airline_theme.'.vim', 1), "\n")[0]
\ | call airline#load_theme() \ | call airline#load_theme()