Function: vertico-repeat-previous
vertico-repeat-previous is an autoloaded, interactive and
byte-compiled function defined in vertico-repeat.el.
Signature
(vertico-repeat-previous N)
Documentation
Repeat Nth previous Vertico completion session.
If called from an existing Vertico session, restore the input and selected candidate for the current command.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/vertico-20260913.1525/vertico-repeat.el
;;;###autoload
(defun vertico-repeat-previous (n)
"Repeat Nth previous Vertico completion session.
If called from an existing Vertico session, restore the input and
selected candidate for the current command."
(interactive "p")
(vertico-repeat--run
(if (not vertico-repeat--command)
(and (> n 0) (nth (1- n) vertico-repeat-history))
(cond
((not vertico-repeat--step)
(setq vertico-repeat--step
(cons (vertico-repeat--current)
(cl-loop for h in vertico-repeat-history
if (eq (car h) vertico-repeat--command) collect h))))
((= vertico-repeat--pos 0)
(setcar vertico-repeat--step (vertico-repeat--current))))
(incf n vertico-repeat--pos)
(when-let* (((>= n 0)) (session (nth n vertico-repeat--step)))
(setq vertico-repeat--pos n)
session))))