From b4b8eef2b0a416252571eebfa9d4440b666c7e73 Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Sun, 6 Feb 2011 23:09:34 +1300 Subject: [PATCH] Small pseudo-tag bugfix --- plugin/tagbar.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/tagbar.vim b/plugin/tagbar.vim index 5cfb22e..fd1156b 100644 --- a/plugin/tagbar.vim +++ b/plugin/tagbar.vim @@ -902,7 +902,7 @@ function! s:AddChildren(tags, processedtags, curpath, pscope, depth, typeinfo) if empty(a:curpath) let is_child = '' else - let is_child = ' && v:val.parentpath ==# a:curpath' + let is_child = ' && match(v:val.path, ''^\C'' . a:curpath) == 0' endif let is_cur_child = 'v:val.depth == a:depth' . is_child