Function: vertico-next-group

vertico-next-group is an interactive and byte-compiled function defined in vertico.el.

Signature

(vertico-next-group &optional N)

Documentation

Cycle N groups forward.

When the prefix argument is 0, the group order is reset.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/vertico-20260811.1003/vertico.el
(defun vertico-next-group (&optional n)
  "Cycle N groups forward.
When the prefix argument is 0, the group order is reset."
  (interactive "p")
  (when (cdr vertico--groups)
    (setq vertico--groups (and (not (eq n 0))
                               (vertico--cycle vertico--groups
                                               (let ((len (length vertico--groups)))
                                                 (- len (mod (- (or n 1)) len)))))
          vertico--lock-groups vertico--groups
          vertico--lock-candidate nil
          vertico--input nil)))