From 1374077676238727a526d74824793a36ef2c0b73 Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Sat, 17 Dec 2016 18:01:49 +1300 Subject: [PATCH] Always log the ctags version output --- autoload/tagbar.vim | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index faaa16c..498a4a1 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -1150,6 +1150,9 @@ function! s:CheckForExCtags(silent) abort let ctags_output = s:ExecuteCtags(ctags_cmd) + call s:debug("Command output:\n" . ctags_output) + call s:debug("Exit code: " . v:shell_error) + if v:shell_error || ctags_output !~# '\(Exuberant\|Universal\) Ctags' let errmsg = 'Tagbar: Ctags doesn''t seem to be Exuberant Ctags!' let infomsg = 'BSD ctags will NOT WORK.' . @@ -1184,13 +1187,6 @@ function! s:CtagsErrMsg(errmsg, infomsg, silent, ...) abort let exit_code = a:3 endif - if ctags_output != '' - call s:debug("Command output:\n" . ctags_output) - endif - if exit_code_set - call s:debug("Exit code: " . exit_code) - endif - if !a:silent call s:warning(a:errmsg) echomsg a:infomsg