Skip to content

Commit

Permalink
Use different argument for ctags vs. uctags, closes preservim#552
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-hann committed Oct 22, 2019
1 parent bb571d0 commit 25abae6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion autoload/tagbar.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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' ]
Expand Down

0 comments on commit 25abae6

Please sign in to comment.