Mercurial > vim
changeset 14165:5b5364d0729d v8.1.0100
patch 8.1.0100: terminal debugger: error when setting a watch point
commit https://github.com/vim/vim/commit/6dccc962f3d019f94656e77309aa00af7bffa4c3
Author: Bram Moolenaar <Bram@vim.org>
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 23 Jun 2018 14:45:06 +0200 |
parents | ea860ae813b9 |
children | 4a570c13f750 |
files | runtime/pack/dist/opt/termdebug/plugin/termdebug.vim src/version.c |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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