Function: corfu-insert-separator

corfu-insert-separator is an interactive and natively compiled function defined in corfu.el.

Signature

(corfu-insert-separator)

Documentation

Insert a separator character, inhibiting quit on completion boundary.

If the currently selected candidate is previewed, jump to the input prompt instead. See corfu-separator for more details.

Key Bindings

corfu-map M-SPC

Source Code

;; Defined in /nix/store/za087xxa0z5mirfbbagrp0qfaqnfn5wb-emacs-packages-deps/share/emacs/site-lisp/elpa/corfu-20260913.1527/corfu.el
(defun corfu-insert-separator ()
  "Insert a separator character, inhibiting quit on completion boundary.
If the currently selected candidate is previewed, jump to the input
prompt instead.  See `corfu-separator' for more details."
  (interactive)
  (if (not (corfu--preview-current-p))
      (insert corfu-separator)
    (corfu--goto -1)
    (unless (or (= (car completion-in-region--data) (point))
                (= (char-before) corfu-separator))
      (insert corfu-separator))))