From ce001d55f41ad111e4907a04b8d8e7af4539cffb Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Mon, 24 Jan 2011 20:14:28 +1300 Subject: [PATCH] Fix bug with prototype recognition --- plugin/tagbar.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/tagbar.vim b/plugin/tagbar.vim index e463f59..3b7790f 100644 --- a/plugin/tagbar.vim +++ b/plugin/tagbar.vim @@ -506,7 +506,9 @@ function! s:ParseTagline(part1, part2, typeinfo) let taginfo.name = basic_info[0] let taginfo.file = basic_info[1] - let pattern = basic_info[2] + " the pattern can contain tabs and thus may have been split up, so join + " the rest of the items together again + let pattern = join(basic_info[2:], "\t") let start = 2 " skip the slash and the ^ let end = strlen(pattern) - 1 if pattern[end - 1] == '$'