summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Pettersson <daniel@dpettersson.net>2026-04-25 18:55:55 +0200
committerDaniel Pettersson <daniel@dpettersson.net>2026-04-25 18:55:55 +0200
commitd77a5b4e6b0fb80ace81e15149ad7ccb965b174f (patch)
tree079d2999c7bc1f33ad47f70127aabbf4a1d33e10
parente10b4f76dd1d9d5c391b4e3e5c044120a1ebf7f8 (diff)
Fix restart when no live connection
-rw-r--r--dape.el6
1 files changed, 1 insertions, 5 deletions
diff --git a/dape.el b/dape.el
index 20ece78..148b4ca 100644
--- a/dape.el
+++ b/dape.el
@@ -2638,11 +2638,7 @@ SKIP-COMPILE is used internally for recursive calls."
(dape-active-mode +1))
(setf (dape--restart-in-progress-p conn) nil))))
(;; Use previous connections configuration
- dape--connections
- (let* ((live (dape--live-connection 'parent t))
- (config (dape--config live)))
- (dape--with-request (dape-kill live)
- (dape config))))
+ dape--connections (dape (dape--config (car dape--connections))))
(;; Use history
dape-history
(dape (apply #'dape--config-eval (dape--config-from-string (car dape-history)))))