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.
This commit is contained in:
Bram Moolenaar
2018-06-23 14:36:17 +02:00
parent 3c867daaf0
commit 6dccc962f3
2 changed files with 7 additions and 0 deletions

View File

@ -863,6 +863,11 @@ endfunc
" Handle setting a breakpoint
" Will update the sign that shows the breakpoint
func s:HandleNewBreakpoint(msg)
if a:msg !~ 'fullname='
" a watch does not have a file name
return
endif
let nr = substitute(a:msg, '.*number="\([0-9]\)*\".*', '\1', '') + 0
if nr == 0
return