From 04bc544db2b63e2950a7058bc7139a7f47057c34 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Mon, 21 Aug 2017 21:29:16 +0200 Subject: [PATCH] po: rename variable correctly and add g: prefix --- autoload/airline/extensions/po.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/airline/extensions/po.vim b/autoload/airline/extensions/po.vim index f4e2fb0..1281d5a 100644 --- a/autoload/airline/extensions/po.vim +++ b/autoload/airline/extensions/po.vim @@ -12,7 +12,7 @@ function! s:shorten() endif endfunction -if airline#init#async +if g:airline#init#async let s:jobs = {} function! s:on_stdout(channel, msg) dict abort @@ -32,7 +32,7 @@ if airline#init#async endfunction function! s:get_msgfmt_stat_async(cmd, file) - if g:airline#util#is_windows || !executable('msgfmt') + if g:airline#init#is_windows || !executable('msgfmt') " no msgfmt on windows? return else @@ -68,7 +68,7 @@ function! airline#extensions#po#stats() endif let cmd = 'msgfmt --statistics -o /dev/null -- ' - if airline#init#async + if g:airline#init#async call s:get_msgfmt_stat_async(cmd, expand('%:p')) else let airline_po_stats = system(cmd. shellescape(expand('%:p')))