mirror of
https://github.com/preservim/tagbar.git
synced 2025-02-14 21:42:46 +08:00
Fix bug with displaying files that don't have scopes
This commit is contained in:
parent
d2a39abd61
commit
d123a8346e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user