#904 Do less processing when newer NeoVim versions are exiting
This commit is contained in:
parent
40e69794eb
commit
69d6ff6020
@ -46,6 +46,11 @@ function! ale#ShouldDoNothing(buffer) abort
|
|||||||
" The checks are split into separate if statements to make it possible to
|
" The checks are split into separate if statements to make it possible to
|
||||||
" profile each check individually with Vim's profiling tools.
|
" profile each check individually with Vim's profiling tools.
|
||||||
|
|
||||||
|
" Don't perform any checks when newer NeoVim versions are exiting.
|
||||||
|
if get(v:, 'exiting', v:null) isnot v:null
|
||||||
|
return 1
|
||||||
|
endif
|
||||||
|
|
||||||
" Do nothing for blacklisted files
|
" Do nothing for blacklisted files
|
||||||
if index(g:ale_filetype_blacklist, &filetype) >= 0
|
if index(g:ale_filetype_blacklist, &filetype) >= 0
|
||||||
return 1
|
return 1
|
||||||
|
@ -801,6 +801,11 @@ endfunction
|
|||||||
" clear the state of everything, and remove the Dictionary for managing
|
" clear the state of everything, and remove the Dictionary for managing
|
||||||
" the buffer.
|
" the buffer.
|
||||||
function! ale#engine#Cleanup(buffer) abort
|
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)
|
if !has_key(g:ale_buffer_info, a:buffer)
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user