mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-23 03:00:00 +08:00
parent
ea7f5d5313
commit
1b41629214
|
@ -358,7 +358,13 @@ endfunction
|
|||
|
||||
function! airline#async#vim7_vcs_clean(cmd, file, vcs)
|
||||
" Vim pre 8, fallback using system()
|
||||
let output=system(a:cmd)
|
||||
" don't want to to see error messages
|
||||
if g:airline#init#is_windows && &shell =~ 'cmd'
|
||||
let cmd = a:cmd .' 2>nul'
|
||||
else
|
||||
let cmd = a:cmd .' 2>/dev/null'
|
||||
endif
|
||||
let output=system(cmd)
|
||||
if !empty(output)
|
||||
call s:set_clean_variables(a:file, a:vcs)
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user