Skip to content

Commit

Permalink
Fix "Wrong type argument: markerp, nil" on "quit" in REPL
Browse files Browse the repository at this point in the history
  • Loading branch information
svaante committed Aug 2, 2024
1 parent e6b459c commit 86e1f6a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dape.el
Original file line number Diff line number Diff line change
Expand Up @@ -4453,7 +4453,13 @@ Send INPUT to DUMMY-PROCESS."
(and dape-repl-use-shorthand
(cdr (assoc input (dape--repl-shorthand-alist))))))
(dape--repl-insert-prompt)
(call-interactively cmd))
;; HACK: Special handing of `dape-quit', `comint-send-input'
;; expects buffer to be still live after calling
;; `comint-input-sender'. Kill buffer with timer instead
;; to avoid error signal.
(if (eq 'dape-quit cmd)
(run-with-timer 0 nil 'dape-quit)
(call-interactively cmd)))
;; Evaluate expression
(t
(dape--repl-insert-prompt)
Expand Down

0 comments on commit 86e1f6a

Please sign in to comment.