From 1b416292149ff29c2104cb9a7adfc5aad2cbb1eb Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Wed, 8 May 2019 13:51:50 +0200 Subject: [PATCH] async: do not show dirty sign for error messages closes #1915 --- autoload/airline/async.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/autoload/airline/async.vim b/autoload/airline/async.vim index f1be3d5..be3a253 100644 --- a/autoload/airline/async.vim +++ b/autoload/airline/async.vim @@ -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