Reset mode when resizing

fixes #1156
This commit is contained in:
Christian Brabandt 2016-05-12 22:27:26 +02:00
parent 8d8d9afaef
commit 70c16f4c46
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ function! s:airline_toggle()
autocmd SessionLoadPost,VimEnter,WinEnter,BufWinEnter,FileType,BufUnload * autocmd SessionLoadPost,VimEnter,WinEnter,BufWinEnter,FileType,BufUnload *
\ call <sid>on_window_changed() \ call <sid>on_window_changed()
autocmd VimResized * call <sid>airline_refresh() autocmd VimResized * unlet! w:airline_lastmode | :call <sid>airline_refresh()
autocmd TabEnter * :unlet! w:airline_lastmode w:airline_active autocmd TabEnter * :unlet! w:airline_lastmode w:airline_active
autocmd BufWritePost */autoload/airline/themes/*.vim autocmd BufWritePost */autoload/airline/themes/*.vim
\ exec 'source '.split(globpath(&rtp, 'autoload/airline/themes/'.g:airline_theme.'.vim', 1), "\n")[0] \ exec 'source '.split(globpath(&rtp, 'autoload/airline/themes/'.g:airline_theme.'.vim', 1), "\n")[0]