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.
This commit is contained in:
Dan Church 2015-04-24 17:44:58 -05:00
parent c6b473f559
commit 40be9a2e5f

View File

@ -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'