po: rename variable correctly and add g: prefix
This commit is contained in:
parent
5fc5a43802
commit
04bc544db2
@ -12,7 +12,7 @@ function! s:shorten()
|
|||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
if airline#init#async
|
if g:airline#init#async
|
||||||
let s:jobs = {}
|
let s:jobs = {}
|
||||||
|
|
||||||
function! s:on_stdout(channel, msg) dict abort
|
function! s:on_stdout(channel, msg) dict abort
|
||||||
@ -32,7 +32,7 @@ if airline#init#async
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:get_msgfmt_stat_async(cmd, file)
|
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?
|
" no msgfmt on windows?
|
||||||
return
|
return
|
||||||
else
|
else
|
||||||
@ -68,7 +68,7 @@ function! airline#extensions#po#stats()
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
let cmd = 'msgfmt --statistics -o /dev/null -- '
|
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'))
|
call s:get_msgfmt_stat_async(cmd, expand('%:p'))
|
||||||
else
|
else
|
||||||
let airline_po_stats = system(cmd. shellescape(expand('%:p')))
|
let airline_po_stats = system(cmd. shellescape(expand('%:p')))
|
||||||
|
Loading…
Reference in New Issue
Block a user