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:
@@ -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' ]
|
||||
|
||||
Reference in New Issue
Block a user