Function: vertico-next-group

vertico-next-group is an interactive and natively 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

vertico-map C-<down> vertico-map M-}

Source Code

;; Defined in /nix/store/h1nc2k1rxmi6k9cfflcd37cf4zfhp2v5-emacs-packages-deps/share/emacs/site-lisp/elpa/vertico-20260913.1525/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)))