diff --git a/autoload/vebugger/mdbg.vim b/autoload/vebugger/mdbg.vim index 6ac5659..fff7888 100644 --- a/autoload/vebugger/mdbg.vim +++ b/autoload/vebugger/mdbg.vim @@ -146,7 +146,8 @@ function! s:breakpointAdded(readResult,debugger) if !empty(a:readResult.mdbg.breakpointBound) let l:breakpointBound=a:readResult.mdbg.breakpointBound let l:lookFor=l:breakpointBound.fileNameTail.':'.l:breakpointBound.line - let l:matchingKeys=filter(keys(a:debugger.state.mdbg.breakpointNumbers),'fnamemodify(v:val,":t")==l:lookFor') + let l:lookForRegex='\V'.escape(l:lookFor,'\').'\$' + let l:matchingKeys=filter(keys(a:debugger.state.mdbg.breakpointNumbers),'v:val=~l:lookForRegex') for l:key in l:matchingKeys if empty(a:debugger.state.mdbg.breakpointNumbers[l:key]) let a:debugger.state.mdbg.breakpointNumbers[l:key]={'number':l:breakpointBound.breakpointNumber} diff --git a/doc/vebugger.txt b/doc/vebugger.txt index 6a7df10..fea86c5 100644 --- a/doc/vebugger.txt +++ b/doc/vebugger.txt @@ -4,7 +4,7 @@ Author: Idan Arye License: Same terms as Vim itself (see |license|) -Version: 1.1.1 +Version: 1.1.2 INTRODUCTION *vebugger*