diff options
author | w0rp <devw0rp@gmail.com> | 2016-10-13 15:21:28 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2016-10-13 15:21:28 +0100 |
commit | ed44d8a146fb891c8a14878922e44a1bbce828c7 (patch) | |
tree | 758a87c6d28c5ef751880e091db4e917b5a799d4 | |
parent | a8c83a097b54da0b6525f57d7d8eac69002dcec5 (diff) | |
download | ale-ed44d8a146fb891c8a14878922e44a1bbce828c7.zip |
#107 - Check if the buffer is gone by looking for a key in the map instead.
-rw-r--r-- | autoload/ale/engine.vim | 2 |
1 files changed, 1 insertions, 1 deletions
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 |