Fix update's condition

This commit is contained in:
crazymaster 2013-07-24 23:16:59 +09:00
parent 443cd8d9c8
commit fbb7d1512e

View File

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