summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-06-23 14:36:17 +0200
committerBram Moolenaar <Bram@vim.org>2018-06-23 14:36:17 +0200
commit6dccc962f3d019f94656e77309aa00af7bffa4c3 (patch)
tree2a18ce27173e7748ed0222d7aadca3e7ef23f6b2
parent3c867daaf09e8ac6ce4b9d43d6fbbfdd7689702d (diff)
downloadvim-6dccc962f3d019f94656e77309aa00af7bffa4c3.zip
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.
-rw-r--r--runtime/pack/dist/opt/termdebug/plugin/termdebug.vim5
-rw-r--r--src/version.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
index b6d9ac5b8..1bea8f554 100644
--- 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
index 23b724675..ba3f84859 100644
--- 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,