From 7081192a8fb9d1a3a188d6afab3b1261e4494ca8 Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Mon, 7 Feb 2011 17:58:33 +1300 Subject: [PATCH] Fix depth bug --- plugin/tagbar.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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