From b66c1ef07005fad6a70957b90d4f47bb932e33e2 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Sat, 11 Feb 2017 19:59:58 +0100 Subject: [PATCH] Redraw statusline on CompleteDone event closes #1402 --- plugin/airline.vim | 3 +++ 1 file changed, 3 insertions(+) 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