Merge pull request #83 from gedgeck/remove_breakpoint_fix
Fix variant for remove/clear breakpoint(s) issue (Issue #81)
This commit is contained in:
commit
d6ac387c8a
@ -323,7 +323,10 @@ function! vebugger#std#updateMarksForFile(state,filename)
|
||||
if -1 < l:bufnr
|
||||
exe 'sign unplace 1 file='.fnamemodify(l:filename,':p')
|
||||
for l:sign in vebugger#util#listSignsInBuffer(l:bufnr)
|
||||
if l:sign.name == 'vebugger_breakpoint'
|
||||
" Checking that sign name starts with 'vebugger_breakpoint'
|
||||
" instead of assuming exact equality
|
||||
let l:is_breakpoint=match(l:sign.name, '^vebugger_breakpoint')
|
||||
if l:is_breakpoint == 0
|
||||
exe 'sign unplace 2 file='.fnamemodify(l:filename,':p')
|
||||
endif
|
||||
endfor
|
||||
|
Loading…
Reference in New Issue
Block a user