]> granicus.if.org Git - vim/commitdiff
patch 8.1.0100: terminal debugger: error when setting a watch point v8.1.0100
authorBram Moolenaar <Bram@vim.org>
Sat, 23 Jun 2018 12:36:17 +0000 (14:36 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 23 Jun 2018 12:36:17 +0000 (14:36 +0200)
Problem:    Terminal debugger: error when setting a watch point.
Solution:   Don't try defining a sign for a watch point.

runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
src/version.c

index b6d9ac5b8ae3cfb80a7d0ac266284c5f70b80173..1bea8f5542d84923ee5736ee89c7c91f4cde4672 100644 (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
index 23b7246750ab6b06895602301b8da9d10bb455f1..ba3f848599d7dd2390315a338389bc914a6aae98 100644 (file)
@@ -761,6 +761,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    100,
 /**/
     99,
 /**/