mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-03-04 22:31:23 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user