Function: ghostel--line-mode-replace-input
ghostel--line-mode-replace-input is a natively compiled function
defined in ghostel-line-mode.el.
Signature
(ghostel--line-mode-replace-input TEXT)
Documentation
Replace the current in-progress input with TEXT.
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel-line-mode.el
(defun ghostel--line-mode-replace-input (text)
"Replace the current in-progress input with TEXT."
(ghostel--line-mode-delete-input)
(when (and ghostel--line-input-start
(marker-position ghostel--line-input-start))
(goto-char (marker-position ghostel--line-input-start))
;; Insertion advances `ghostel--line-input-end' (insertion type
;; t), so the end marker tracks the new input's tail.
(insert text)
(when (markerp ghostel--line-input-end)
(goto-char (marker-position ghostel--line-input-end)))))