summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-02-11 00:20:16 +0000
committerw0rp <devw0rp@gmail.com>2017-02-11 00:20:16 +0000
commit4737e09bcf04f66ccff5772b8414532646d32ec8 (patch)
treea7676461ad5ef0ea198bd25f1dd8a41fab4e96de
parent14c38cdb6363147e224eb82af85d9d3c865e6ba2 (diff)
downloadale-4737e09bcf04f66ccff5772b8414532646d32ec8.zip
Try and fix Travis builds again
-rw-r--r--autoload/ale/engine.vim7
1 files changed, 6 insertions, 1 deletions
diff --git a/autoload/ale/engine.vim b/autoload/ale/engine.vim
index d1bc9448..70cd0527 100644
--- a/autoload/ale/engine.vim
+++ b/autoload/ale/engine.vim
@@ -17,7 +17,12 @@ function! s:GetJobID(job) abort
" In Vim 8, the job is a special variable, and we open a channel for each
" job. We'll use the ID of the channel instead as the job ID.
- return ch_info(job_getchannel(a:job)).id
+ try
+ return ch_info(job_getchannel(a:job)).id
+ endtry
+
+ " If we fail to get the channel ID for a job, just return a 0 ID.
+ return 0
endfunction
function! ale#engine#InitBufferInfo(buffer) abort