Function: vertico-exit
vertico-exit is an interactive and natively compiled function defined
in vertico.el.
Signature
(vertico-exit &optional ARG)
Documentation
Exit minibuffer with current candidate or input if prefix ARG is given.
Key Bindings
vertico-map C-j vertico-map RET
Source Code
;; Defined in /nix/store/h1nc2k1rxmi6k9cfflcd37cf4zfhp2v5-emacs-packages-deps/share/emacs/site-lisp/elpa/vertico-20260913.1525/vertico.el
(defun vertico-exit (&optional arg)
"Exit minibuffer with current candidate or input if prefix ARG is given."
(interactive "P")
(when (and (not arg) (>= vertico--index 0))
(vertico-insert))
(when (vertico--match-p (minibuffer-contents-no-properties))
(exit-minibuffer)))