mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-23 02:27:55 +08:00
async: correctly redirect error on powershell
This commit is contained in:
parent
2e9d36e220
commit
a201689e38
|
@ -367,8 +367,10 @@ endfunction
|
|||
function! airline#async#vim7_vcs_clean(cmd, file, vcs)
|
||||
" Vim pre 8, fallback using system()
|
||||
" don't want to to see error messages
|
||||
if g:airline#init#is_windows && &shell =~ 'cmd\|powershell'
|
||||
if g:airline#init#is_windows && &shell =~ 'cmd'
|
||||
let cmd = a:cmd .' 2>nul'
|
||||
elseif g:airline#init#is_windows && &shell =~ 'powerline'
|
||||
let cmd = a:cmd .' 2> $null'
|
||||
else
|
||||
let cmd = a:cmd .' 2>/dev/null'
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user