diff --git a/plugin/tagbar.vim b/plugin/tagbar.vim index fd1156b..a2eb518 100644 --- a/plugin/tagbar.vim +++ b/plugin/tagbar.vim @@ -881,8 +881,8 @@ function! s:ParseTagline(part1, part2, typeinfo) break endif endfor + let taginfo.depth = len(split(taginfo.path, '\V' . a:typeinfo.sro)) endif - let taginfo.depth = len(split(taginfo.path, '\V' . a:typeinfo.sro)) return taginfo endfunction