Function: corfu-prompt-beginning
corfu-prompt-beginning is an interactive and natively 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
corfu-map <home> corfu-map C-a
Source Code
;; Defined in /nix/store/za087xxa0z5mirfbbagrp0qfaqnfn5wb-emacs-packages-deps/share/emacs/site-lisp/elpa/corfu-20260913.1527/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))))