From 86b268471b381b5dd3946d99c05efd6599c2f7a9 Mon Sep 17 00:00:00 2001 From: zhmars <18466397+zhmars@users.noreply.github.com> Date: Wed, 26 Aug 2020 17:14:15 +0800 Subject: [PATCH] Fix --file-scope option warning (#648) --- autoload/tagbar.vim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index 93a77e7..314b9cf 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -1316,9 +1316,9 @@ function! s:ExecuteCtagsOnFile(fname, realfname, typeinfo) abort " universal-ctags deprecated this argument name if s:ctags_is_uctags - let ctags_args += [ '--extras=' ] + let ctags_args += [ '--extras=+F' ] else - let ctags_args += [ '--extra=' ] + let ctags_args += [ '--extra=', '--file-scope=yes' ] endif let ctags_args = ctags_args + [ @@ -1327,7 +1327,6 @@ function! s:ExecuteCtagsOnFile(fname, realfname, typeinfo) abort \ '--format=2', \ '--excmd=pattern', \ '--fields=nksSaf', - \ '--file-scope=yes', \ '--sort=no', \ '--append=no' \ ]