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' ]