From b91f729586f092d9aabb3c6adbe60995fa2cb114 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Tue, 26 Apr 2016 21:05:03 +0200 Subject: [PATCH] call refresh function on window resize event fixes #1144 --- plugin/airline.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/airline.vim b/plugin/airline.vim index d44419d7..2fcbd450 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -87,9 +87,10 @@ function! s:airline_toggle() autocmd CmdwinLeave * call airline#remove_statusline_func('airline#cmdwinenter') autocmd GUIEnter,ColorScheme * call on_colorscheme_changed() - autocmd SessionLoadPost,VimEnter,WinEnter,BufWinEnter,FileType,BufUnload,VimResized * + autocmd VimEnter,WinEnter,BufWinEnter,FileType,BufUnload * \ call on_window_changed() + autocmd VimResized * call airline_refresh() autocmd TabEnter * :unlet! w:airline_lastmode autocmd BufWritePost */autoload/airline/themes/*.vim \ exec 'source '.split(globpath(&rtp, 'autoload/airline/themes/'.g:airline_theme.'.vim', 1), "\n")[0]