#904 Do less processing when newer NeoVim versions are exiting

This commit is contained in:
w0rp
2017-10-14 19:22:19 +01:00
parent 40e69794eb
commit 69d6ff6020
2 changed files with 10 additions and 0 deletions

View File

@@ -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