From a201689e38359b6ddd8b5e60e996a669f0463d8c Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Tue, 28 Jan 2020 16:01:52 +0100 Subject: [PATCH] async: correctly redirect error on powershell --- autoload/airline/async.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/airline/async.vim b/autoload/airline/async.vim index 8e94fe09..27a58381 100644 --- a/autoload/airline/async.vim +++ b/autoload/airline/async.vim @@ -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