detect lazyredraw and handle accordingly

This commit is contained in:
Bailey Ling committed 2013-07-01 21:33:10 -04:00
1 parent de8538b55e
commit 80a9d1a276
2 files changed
+13 -7

No files matched your search

+5
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