Fix update's condition

This commit is contained in:
crazymaster 2013-07-24 23:16:59 +09:00
parent 443cd8d9c8
commit fbb7d1512e
1 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ command! -nargs=? -complete=customlist,<sid>get_airline_themes AirlineTheme call
augroup airline
au!
autocmd ColorScheme * call airline#highlight(['normal'])
autocmd WinLeave * call airline#update_statusline(0)
autocmd WinEnter,BufWinEnter,FileType * call <sid>init() | call airline#update_statusline(1)
autocmd WinLeave,BufLeave,CmdwinLeave * call airline#update_statusline(0)
autocmd WinEnter,BufEnter,FileType,BufUnload,CmdwinEnter * call <sid>init() | call airline#update_statusline(1)
autocmd ShellCmdPost * call airline#update_externals()
augroup END