Print post-processing error in multi-line paragraph

Related #510
This commit is contained in:
Junegunn Choi
2016-08-15 00:46:10 +09:00
parent b44ea685aa
commit 561518fd8c
2 changed files with 5 additions and 4 deletions

View File

@@ -1044,14 +1044,14 @@ function! s:update_finish()
call s:log4(name, 'Updating submodules. This may take a while.')
let out .= s:bang('git submodule update --init --recursive 2>&1', spec.dir)
endif
let msg = printf('%s %s: %s', v:shell_error ? 'x': '-', name, s:lastline(out))
let msg = s:format_message(v:shell_error ? 'x': '-', name, out)
if v:shell_error
call add(s:update.errors, name)
call s:regress_bar()
silent execute pos 'd _'
call append(4, msg) | 4
elseif !empty(out)
call setline(pos, msg)
call setline(pos, msg[0])
endif
redraw
endfor