fix po output not visible for nvim

Apparently, the output of msgfmt goes to stderr. So catch that one as
well.
This commit is contained in:
Christian Brabandt
2017-08-23 00:00:47 +02:00
parent 2c05a48a26
commit 06272275b5
2 changed files with 8 additions and 2 deletions

View File

@@ -27,6 +27,8 @@ function! airline#extensions#po#stats()
let cmd = 'msgfmt --statistics -o /dev/null -- '
if g:airline#init#async
call airline#async#get_msgfmt_stat(cmd, expand('%:p'))
elseif has("nvim")
call airline#async#nvim_get_msgfmt_stat(cmd, expand('%:p'))
else
let airline_po_stats = system(cmd. shellescape(expand('%:p')))
if v:shell_error