Merge pull request #1196 from chrisbra/tabenter

Reset w:airline_active on TabEnter
This commit is contained in:
Christian Brabandt 2016-07-01 11:11:35 +02:00 committed by GitHub
commit 39f046664d

View File

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