mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-04 17:12:53 +08:00
#904 Do less processing when newer NeoVim versions are exiting
This commit is contained in:
@@ -801,6 +801,11 @@ endfunction
|
||||
" clear the state of everything, and remove the Dictionary for managing
|
||||
" the buffer.
|
||||
function! ale#engine#Cleanup(buffer) abort
|
||||
" Don't bother with cleanup code when newer NeoVim versions are exiting.
|
||||
if get(v:, 'exiting', v:null) isnot v:null
|
||||
return
|
||||
endif
|
||||
|
||||
if !has_key(g:ale_buffer_info, a:buffer)
|
||||
return
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user