detect lazyredraw and handle accordingly

This commit is contained in:
Bailey Ling
2013-07-01 21:33:10 -04:00
parent de8538b55e
commit 80a9d1a276
2 changed files with 13 additions and 7 deletions

View File

@@ -132,4 +132,9 @@ augroup airline
autocmd WinLeave * call <sid>update_statusline(0)
autocmd VimEnter,WinEnter,BufWinEnter * call <sid>update_statusline(1)
autocmd ColorScheme * hi clear StatusLine | hi clear StatusLineNC
" if you know why lazyredraw affects statusline rendering i'd love to know!
if !&lazyredraw
autocmd InsertLeave * :redrawstatus
endif
augroup END