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