From 4b51aa490e429da0af9380586f538deddfa9f1c4 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Tue, 22 Oct 2019 10:46:09 +0300 Subject: [PATCH] Use different argument for ctags vs. uctags, closes #552 --- autoload/tagbar.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index 83d0b43..b3f9666 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -1106,12 +1106,18 @@ function! s:ExecuteCtagsOnFile(fname, realfname, typeinfo) abort \ '--format=2', \ '--excmd=pattern', \ '--fields=nksSaf', - \ '--extras=', \ '--file-scope=yes', \ '--sort=no', \ '--append=no' \ ] + " universal-ctags deprecated this argument name + if s:ctags_is_uctags + let ctags_args += [ '--extras=' ] + else + let ctags_args += [ '--extra=' ] + endif + " verbose if debug enabled if tagbar#debug#enabled() let ctags_args += [ '-V' ]