init: rename variable

This commit is contained in:
Christian Brabandt 2017-08-21 21:26:35 +02:00
parent c2b2351d99
commit 5fc5a43802
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
2 changed files with 3 additions and 3 deletions

View File

@ -221,7 +221,7 @@ if g:airline#init#async
endfunction endfunction
function! s:get_vcs_untracked_async(config, file) function! s:get_vcs_untracked_async(config, file)
if g:airline#util#is_windows && &shell =~ 'cmd' if g:airline#init#is_windows && &shell =~ 'cmd'
let cmd = a:config['cmd'] . shellescape(a:file) let cmd = a:config['cmd'] . shellescape(a:file)
else else
let cmd = ['sh', '-c', a:config['cmd'] . shellescape(a:file)] let cmd = ['sh', '-c', a:config['cmd'] . shellescape(a:file)]
@ -259,7 +259,7 @@ if g:airline#init#async
endfunction endfunction
function! s:get_mq_async(cmd, file) function! s:get_mq_async(cmd, file)
if g:airline#util#is_windows && &shell =~ 'cmd' if g:airline#init#is_windows && &shell =~ 'cmd'
let cmd = a:cmd let cmd = a:cmd
else else
let cmd = ['sh', '-c', a:cmd] let cmd = ['sh', '-c', a:cmd]

View File

@ -19,7 +19,7 @@ function! airline#init#bootstrap()
let g:airline#init#bootstrapping = 1 let g:airline#init#bootstrapping = 1
let g:airline#init#async = (has("nvim") || (v:version >= 800 && has('job'))) let g:airline#init#async = (has("nvim") || (v:version >= 800 && has('job')))
let g:airline#util#is_windows = has('win32') || has('win64') let g:airline#init#is_windows = has('win32') || has('win64')
call s:check_defined('g:airline_detect_modified', 1) call s:check_defined('g:airline_detect_modified', 1)
call s:check_defined('g:airline_detect_paste', 1) call s:check_defined('g:airline_detect_paste', 1)