mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-08 21:14:44 +08:00
async: correctly redirect error on powershell
This commit is contained in:
@@ -367,8 +367,10 @@ endfunction
|
|||||||
function! airline#async#vim7_vcs_clean(cmd, file, vcs)
|
function! airline#async#vim7_vcs_clean(cmd, file, vcs)
|
||||||
" Vim pre 8, fallback using system()
|
" Vim pre 8, fallback using system()
|
||||||
" don't want to to see error messages
|
" 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'
|
let cmd = a:cmd .' 2>nul'
|
||||||
|
elseif g:airline#init#is_windows && &shell =~ 'powerline'
|
||||||
|
let cmd = a:cmd .' 2> $null'
|
||||||
else
|
else
|
||||||
let cmd = a:cmd .' 2>/dev/null'
|
let cmd = a:cmd .' 2>/dev/null'
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user