# HG changeset patch # User Christian Brabandt # Date 1529757906 -7200 # Node ID 5b5364d0729d0f98ac81610adeb29378ae68bab8 # Parent ea860ae813b9b624fbbfec84176eb2f850bd6949 patch 8.1.0100: terminal debugger: error when setting a watch point commit https://github.com/vim/vim/commit/6dccc962f3d019f94656e77309aa00af7bffa4c3 Author: Bram Moolenaar Date: Sat Jun 23 14:36:17 2018 +0200 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. diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim --- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim +++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim @@ -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 diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -762,6 +762,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 100, +/**/ 99, /**/ 98,