From 040d1b99e7fd36600b39e074f3081830d993df58 Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Mon, 17 Jan 2011 23:40:50 +1300 Subject: [PATCH] Small cleanups. --- plugin/tagbar.vim | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/plugin/tagbar.vim b/plugin/tagbar.vim index d6da23c..f10fddb 100644 --- a/plugin/tagbar.vim +++ b/plugin/tagbar.vim @@ -281,11 +281,10 @@ function! s:ProcessFile(fname, ftype) let typeinfo = s:known_types[a:ftype] - let ctags_args = ' -f - --format=2 --excmd=pattern --fields=nksSaz --extra= ' - - let ctags_args .= ' --sort=yes ' + let ctags_args = ' -f - --format=2 --excmd=pattern --fields=nksSaz --extra= --sort=yes ' let ctags_type = typeinfo.ctagstype + let ctags_kinds = "" for kind in typeinfo.kinds let [short, full] = split(kind, ':') @@ -336,7 +335,7 @@ function! s:ProcessFile(fname, ftype) \ '', tag.name, typeinfo) endfor - call s:ProcessPseudoTags(fileinfo.tags, typeinfo) + call s:AddPseudoTags(fileinfo.tags, typeinfo) call extend(fileinfo.tags, scopedtags) endif @@ -376,7 +375,7 @@ function! s:ParseTagline(line) return taginfo endfunction -function! s:ProcessPseudoTags(tags, typeinfo) +function! s:AddPseudoTags(tags, typeinfo) for scope in a:typeinfo.scopes let orphans = filter(copy(a:tags), \ 'has_key(v:val.fields, scope)')