1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-17 11:30:28 +01:00

Always log the ctags version output

This commit is contained in:
Jan Larres
2016-12-17 18:01:49 +13:00
parent 01f57ac564
commit 1374077676

View File

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