Function: corfu-prompt-beginning

corfu-prompt-beginning is an interactive and byte-compiled function defined in corfu.el.

Signature

(corfu-prompt-beginning ARG)

Documentation

Move to beginning of the prompt line.

If the point is already the beginning of the prompt move to the beginning of the line. If ARG is not 1 or nil, move backward ARG - 1 lines first.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/corfu-20260813.950/corfu.el
(defun corfu-prompt-beginning (arg)
  "Move to beginning of the prompt line.
If the point is already the beginning of the prompt move to the
beginning of the line.  If ARG is not 1 or nil, move backward ARG - 1
lines first."
  (interactive "^p")
  (let ((beg (car completion-in-region--data)))
    (if (or (not (eq arg 1))
            (and (= corfu--preselect corfu--index) (= (point) beg)))
        (move-beginning-of-line arg)
      (corfu--goto -1)
      (goto-char beg))))