Function: evil-ex-remove-default
evil-ex-remove-default is a byte-compiled function defined in
evil-common.el.
Signature
(evil-ex-remove-default)
Documentation
Remove the default text shown in the ex minibuffer.
When Ex starts, the previous command is shown enclosed in parenthesis. This function removes this text when the first key is pressed.
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-common.el
(defun evil-ex-remove-default ()
"Remove the default text shown in the ex minibuffer.
When Ex starts, the previous command is shown enclosed in
parenthesis. This function removes this text when the first key
is pressed."
(when (and (not (eq this-command 'exit-minibuffer))
(/= (minibuffer-prompt-end) (point-max)))
(when (eq this-command 'evil-ex-delete-backward-char)
(setq this-command 'ignore))
(if (eq this-original-command 'evil-paste-from-register)
(setq evil-paste-clear-minibuffer-first t)
(delete-minibuffer-contents)))
(remove-hook 'pre-command-hook #'evil-ex-remove-default t))