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

Arrange (u)ctag argument order to not clobber others (#560)

This commit is contained in:
Caleb Maclennan
2019-10-25 21:44:37 +03:00
committed by GitHub
parent ede158656a
commit a0f51bd5a6

View File

@@ -1100,6 +1100,14 @@ function! s:ExecuteCtagsOnFile(fname, realfname, typeinfo) abort
call add(ctags_args, '--options='.value)
endfor
endif
" universal-ctags deprecated this argument name
if s:ctags_is_uctags
let ctags_args += [ '--extras=' ]
else
let ctags_args += [ '--extra=' ]
endif
let ctags_args = ctags_args + [
\ '-f',
\ '-',
@@ -1111,13 +1119,6 @@ function! s:ExecuteCtagsOnFile(fname, realfname, typeinfo) abort
\ '--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' ]