From d6513dfb880101e1ff275ab75904ef1049ad2c1c Mon Sep 17 00:00:00 2001 From: Alexey Balchunas Date: Sat, 5 Sep 2015 23:38:24 +0700 Subject: [PATCH] Fixed a critical bug in source searching using tags --- autoload/vebugger/jdb.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/vebugger/jdb.vim b/autoload/vebugger/jdb.vim index a674a02..432f7dd 100644 --- a/autoload/vebugger/jdb.vim +++ b/autoload/vebugger/jdb.vim @@ -60,7 +60,7 @@ function! s:getTagContainingString(tag, str) let l:tags = taglist(a:tag) if (len(l:tags) > 0) for l:tag in l:tags - if (filereadable(l:tag.filename) && (len(a:str) == 0 || match(readfile(l:tag.filename), a:str))) + if (filereadable(l:tag.filename) && match(readfile(l:tag.filename), a:str) >= 0) return l:tag endif endfor