From b6f00de44891f72eac01b1aa9a92b53836af310a Mon Sep 17 00:00:00 2001 From: Yuriy Zhyromskiy Date: Wed, 10 Apr 2019 07:32:06 +0300 Subject: [PATCH] Fix variant for remove/clear breakpoint(s) issue --- autoload/vebugger/std.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autoload/vebugger/std.vim b/autoload/vebugger/std.vim index c8b0d1a..89b767c 100644 --- a/autoload/vebugger/std.vim +++ b/autoload/vebugger/std.vim @@ -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