From d123a8346e9ae2266b7a253850b34b028a255826 Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Fri, 8 Apr 2011 01:18:01 +1200 Subject: [PATCH] Fix bug with displaying files that don't have scopes --- plugin/tagbar.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/tagbar.vim b/plugin/tagbar.vim index b17f221..303e495 100644 --- a/plugin/tagbar.vim +++ b/plugin/tagbar.vim @@ -986,7 +986,8 @@ endfunction " s:NormalTag.str() {{{3 function! s:NormalTag.str(fileinfo, typeinfo) dict let suffix = get(self.fields, 'signature', '') - if has_key(a:typeinfo.kind2scope, self.fields.kind) + if has_key(a:typeinfo, 'kind2scope') && + \ has_key(a:typeinfo.kind2scope, self.fields.kind) let suffix .= ' : ' . a:typeinfo.kind2scope[self.fields.kind] endif