Fix +debugger/quit

This commit is contained in:
Henrik Laxhuber
2021-03-01 09:15:06 +01:00
parent cf3d9eb6e0
commit 462efded5f

View File

@@ -107,7 +107,7 @@ for what debugger to use. If the prefix ARG is set, prompt anyway."
"Quit the active debugger, if any."
(interactive)
(cond ((and (fboundp 'dap--cur-session) (dap--cur-session))
(dap-disconnect))
(dap-disconnect (dap--cur-session)))
((and (fboundp 'realgud-get-cmdbuf) (realgud-get-cmdbuf))
(let ((buf (realgud-get-cmdbuf)))
(ignore-errors