Skip to content

Commit 6dccc96

Browse files
committed
patch 8.1.0100: terminal debugger: error when setting a watch point
Problem: Terminal debugger: error when setting a watch point. Solution: Don't try defining a sign for a watch point.
1 parent 3c867da commit 6dccc96

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

runtime/pack/dist/opt/termdebug/plugin/termdebug.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,11 @@ endfunc
863863
" Handle setting a breakpoint
864864
" Will update the sign that shows the breakpoint
865865
func s:HandleNewBreakpoint(msg)
866+
if a:msg !~ 'fullname='
867+
" a watch does not have a file name
868+
return
869+
endif
870+
866871
let nr = substitute(a:msg, '.*number="\([0-9]\)*\".*', '\1', '') + 0
867872
if nr == 0
868873
return

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
100,
764766
/**/
765767
99,
766768
/**/

0 commit comments

Comments
 (0)