From 40be9a2e5f11cde4aa08b9e8b1fd7b677ce38665 Mon Sep 17 00:00:00 2001 From: Dan Church Date: Fri, 24 Apr 2015 17:44:58 -0500 Subject: [PATCH] Suppress status-line output when executing shell Failing to suppress output can cause problems in some environments, especially if the shell command fails or does something else spooky. Example where failing to suppress the shell command causes issues with [vim-airline](https://github.com/bling/vim-airline) with the tagbar extension enabled: ![](http://i.imgur.com/ciigs8C.png) Here's another example: ![](http://i.imgur.com/cl96sI8.png) Both were taken using uxterm in Linux. --- autoload/tagbar.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index 6063e91..df3e476 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -3665,7 +3665,7 @@ function! s:ExecuteCtags(ctags_cmd) abort call s:debug(v:statusmsg) redraw! else - let ctags_output = system(a:ctags_cmd) + silent let ctags_output = system(a:ctags_cmd) endif if &shell =~ 'cmd\.exe'