diff --git a/plugin/airline.vim b/plugin/airline.vim index 0590cf6..53a21b6 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -91,6 +91,9 @@ function! s:airline_toggle() autocmd GUIEnter,ColorScheme * call on_colorscheme_changed() autocmd SessionLoadPost,VimEnter,WinEnter,BufWinEnter,FileType,BufUnload * \ call on_window_changed() + if exists('#CompleteDone') + autocmd CompleteDone * call on_window_changed() + endif autocmd VimResized * unlet! w:airline_lastmode | :call airline_refresh() autocmd TabEnter * :unlet! w:airline_lastmode | let w:airline_active=1