Merge pull request #2286 from jan-xyz/patch-1

remove work-around for vista.vim
This commit is contained in:
Christian Brabandt 2020-11-10 08:47:56 +01:00 committed by GitHub
commit 731bdb11d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,14 +47,6 @@ function! s:init()
call airline#util#doautocmd('AirlineAfterInit')
endfunction
function! s:do_vim_enter()
" Needed for the Vista extension #2009
if get(g:, 'airline#extensions#vista#enabled', 1) && exists(':Vista')
call vista#RunForNearestMethodOrFunction()
endif
call <sid>on_window_changed('VimEnter')
endfunction
let s:active_winnr = -1
function! s:on_window_changed(event)
" don't trigger for Vim popup windows
@ -144,7 +136,7 @@ function! s:airline_toggle()
" Refresh airline for :syntax off
autocmd SourcePre */syntax/syntax.vim
\ call airline#extensions#tabline#buffers#invalidate()
autocmd VimEnter * call <sid>do_vim_enter()
autocmd VimEnter * call <sid>on_window_changed('VimEnter')
autocmd WinEnter * call <sid>on_window_changed('WinEnter')
autocmd FileType * call <sid>on_window_changed('FileType')
autocmd BufWinEnter * call <sid>on_window_changed('BufWinEnter')