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

Use different argument for ctags vs. uctags, closes #552

This commit is contained in:
Caleb Maclennan
2019-10-22 10:46:09 +03:00
parent cf6eb2d9f7
commit 4b51aa490e

View File

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