Function: eca-chat-clear-prompt
eca-chat-clear-prompt is an interactive and natively compiled function
defined in eca-chat.el.
Signature
(eca-chat-clear-prompt)
Documentation
Clear the prompt input field in chat.
Rebuilds the prompt block markup when it is corrupted (see #305).
Key Bindings
eca-chat-mode-map C-c C-d
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
;;;###autoload
(defun eca-chat-clear-prompt ()
"Clear the prompt input field in chat.
Rebuilds the prompt block markup when it is corrupted (see #305)."
(interactive)
(when-let ((chat-buffer (eca-chat--get-last-buffer (eca-session))))
(with-current-buffer chat-buffer
(if (eca-chat--prompt-block-broken-p)
(eca-chat--rebuild-prompt-area)
(eca-chat--set-prompt "")))))