mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-18 03:50:26 +01:00
Fix bug with displaying files that don't have scopes
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user