Browse Source

Fix removing unresolved breakpoints

* indium-breakpoint.el (indium-breakpoint-remove): Always try to remove
  breakpoints. A breakpoint might be registered by the backend, but not resolved
  yet.
drone
Nicolas Petton 3 years ago
parent
commit
63309b28a4
No known key found for this signature in database GPG Key ID: E8BCD7866AFCF978
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      indium-breakpoint.el

+ 1
- 2
indium-breakpoint.el View File

@ -56,8 +56,7 @@ CONDITION is true."
(defun indium-breakpoint-remove ()
"Remove all breakpoints from the current line."
(seq-doseq (brk (indium-breakpoint-breakpoints-at-point))
(when (indium-breakpoint-resolved brk)
(indium-client-remove-breakpoint brk))
(indium-client-remove-breakpoint brk)
(map-delete indium-breakpoint--local-breakpoints brk)
(indium-breakpoint--remove-overlay)))


Loading…
Cancel
Save