1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-17 19:40:27 +01:00

Don't error on incorrect ctags scope info, ref #397

This commit is contained in:
Jan Larres
2017-02-18 16:32:30 +13:00
parent 9d051c1e2d
commit e089b61e25

View File

@@ -2706,7 +2706,9 @@ endfunction
function! s:create_pseudotag(name, parent, kind, typeinfo, fileinfo) abort
if !empty(a:parent)
let curpath = a:parent.fullpath
let pscope = a:typeinfo.kind2scope[a:parent.fields.kind]
" If the kind is not present in the kind2scope dictionary, return an
" empty scope. This can happen due to incorrect ctags output as in #397.
let pscope = get(a:typeinfo.kind2scope, a:parent.fields.kind, '')
else
let curpath = ''
let pscope = ''