Fix bug with displaying files that don't have scopes

This commit is contained in:
Jan Larres 2011-04-08 01:18:01 +12:00
parent d2a39abd61
commit d123a8346e

View File

@ -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