Merge pull request #1986 from kazukazuinaina/add_update_statusline_check

add check to statusline's update
This commit is contained in:
Christian Brabandt 2019-10-24 09:38:01 +02:00 committed by GitHub
commit 6eda2735aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,7 @@ function! s:on_window_changed(event)
endfunction endfunction
function! s:on_cursor_moved() function! s:on_cursor_moved()
if winnr() != s:active_winnr if winnr() != s:active_winnr || !exists('w:airline_active')
call s:on_window_changed('CursorMoved') call s:on_window_changed('CursorMoved')
endif endif
call airline#update_tabline() call airline#update_tabline()