From ed44d8a146fb891c8a14878922e44a1bbce828c7 Mon Sep 17 00:00:00 2001 From: w0rp Date: Thu, 13 Oct 2016 15:21:28 +0100 Subject: [PATCH] #107 - Check if the buffer is gone by looking for a key in the map instead. --- autoload/ale/engine.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/ale/engine.vim b/autoload/ale/engine.vim index 42c2f750..0ce5b84e 100644 --- a/autoload/ale/engine.vim +++ b/autoload/ale/engine.vim @@ -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