mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-06 12:14:24 +08:00
detect lazyredraw and handle accordingly
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user