summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-12-26 18:15:51 +0000
committerw0rp <devw0rp@gmail.com>2017-12-26 18:15:59 +0000
commitc165c7c5d11eb827a3be6bab691f20eeb6f6e487 (patch)
treef4ccc2a397183ecca239e32e585c2f9cf7478a79 /autoload
parent48cae6afc473173fd0ad6764f96dc01cbdc09544 (diff)
downloadale-c165c7c5d11eb827a3be6bab691f20eeb6f6e487.zip
Fix #1251 - Handle an empty list in the line callback when NeoVim crashes
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/job.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/job.vim b/autoload/ale/job.vim
index 2e0b8ca2..9cebcf5b 100644
--- a/autoload/ale/job.vim
+++ b/autoload/ale/job.vim
@@ -36,7 +36,7 @@ function! ale#job#JoinNeovimOutput(job, last_line, data, mode, callback) abort
let l:lines[0] = a:last_line . l:lines[0]
let l:new_last_line = a:data[-1]
else
- let l:new_last_line = a:last_line . a:data[0]
+ let l:new_last_line = a:last_line . get(a:data, 0, '')
endif
for l:line in l:lines