From e8d127bf409c59e6bcf93d70d4178bac286c9d84 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Fri, 29 May 2020 21:55:11 +0300 Subject: [PATCH] Catch error message from u/e ctags variants Co-authored-by: Steven Engler --- autoload/tagbar.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index d948e6b..0f67dea 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -1367,7 +1367,7 @@ function! s:ExecuteCtagsOnFile(fname, realfname, typeinfo) abort let ctags_output = s:ExecuteCtags(ctags_cmd) - if v:shell_error || ctags_output =~? 'Warning: cannot open source file' + if v:shell_error || ctags_output =~? 'Warning: cannot open \(source\|input\) file' call tagbar#debug#log('Command output:') call tagbar#debug#log(ctags_output) call tagbar#debug#log('Exit code: ' . v:shell_error)