Redraw statusline on CompleteDone event

closes #1402
This commit is contained in:
Christian Brabandt 2017-02-11 19:59:58 +01:00
parent 8a01eff1c2
commit b66c1ef070
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -91,6 +91,9 @@ function! s:airline_toggle()
autocmd GUIEnter,ColorScheme * call <sid>on_colorscheme_changed()
autocmd SessionLoadPost,VimEnter,WinEnter,BufWinEnter,FileType,BufUnload *
\ call <sid>on_window_changed()
if exists('#CompleteDone')
autocmd CompleteDone * call <sid>on_window_changed()
endif
autocmd VimResized * unlet! w:airline_lastmode | :call <sid>airline_refresh()
autocmd TabEnter * :unlet! w:airline_lastmode | let w:airline_active=1