Merge pull request #1145 from chrisbra/1144
call refresh function on window resize event
This commit is contained in:
commit
d36085a5b0
|
@ -87,9 +87,10 @@ function! s:airline_toggle()
|
|||
autocmd CmdwinLeave * call airline#remove_statusline_func('airline#cmdwinenter')
|
||||
|
||||
autocmd GUIEnter,ColorScheme * call <sid>on_colorscheme_changed()
|
||||
autocmd SessionLoadPost,VimEnter,WinEnter,BufWinEnter,FileType,BufUnload,VimResized *
|
||||
autocmd VimEnter,WinEnter,BufWinEnter,FileType,BufUnload *
|
||||
\ call <sid>on_window_changed()
|
||||
|
||||
autocmd VimResized * call <sid>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]
|
||||
|
|
Loading…
Reference in New Issue