#107 - Check if the buffer is gone by looking for a key in the map instead.

This commit is contained in:
w0rp 2016-10-13 15:21:28 +01:00
parent a8c83a097b
commit ed44d8a146

View file

@ -78,7 +78,7 @@ function! s:HandleExit(job) abort
let l:output = l:job_info.output
let l:buffer = l:job_info.buffer
if bufwinnr(l:buffer) == -1
if !has_key(g:ale_buffer_should_reset_map, l:buffer)
" A job ended for a buffer which has been closed, so stop here.
return
endif