From 942458f19b87e1ab0eed071c2bd6fd5318a7f3e9 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Tue, 29 Aug 2017 12:56:15 +0200 Subject: [PATCH] async: include stderr output in job output (Nvim) references #1551 --- autoload/airline/async.vim | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/autoload/airline/async.vim b/autoload/airline/async.vim index dc1cdc1..26502bc 100644 --- a/autoload/airline/async.vim +++ b/autoload/airline/async.vim @@ -154,7 +154,7 @@ elseif has("nvim") endfunction function! s:nvim_mq_job_handler(job_id, data, event) dict - if a:event == 'stdout' + if a:event == 'stdout' || a:event == 'stderr' let self.buf .= join(a:data) else " on_exit handler call s:mq_output(self.buf, self.file) @@ -162,9 +162,7 @@ elseif has("nvim") endfunction function! s:nvim_po_job_handler(job_id, data, event) dict - if a:event == 'stdout' - let self.buf .= join(a:data) - elseif a:event == 'stderr' + if a:event == 'stdout' || a:event == 'stderr' let self.buf .= join(a:data) else " on_exit handler call s:po_output(self.buf, self.file) @@ -178,6 +176,7 @@ elseif has("nvim") \ 'file': a:file, \ 'cwd': s:valid_dir(fnamemodify(a:file, ':p:h')), \ 'on_stdout': function('s:nvim_mq_job_handler'), + \ 'on_stderr': function('s:nvim_mq_job_handler'), \ 'on_exit': function('s:nvim_mq_job_handler') \ } if g:airline#init#is_windows && &shell =~ 'cmd'