Function: corfu--done

corfu--done is a byte-compiled function defined in corfu.el.

Signature

(corfu--done STR STATUS CANDS)

Documentation

Exit completion and call the exit function with STR and STATUS.

Lookup STR in CANDS to restore text properties.

Source Code

;; Defined in ~/.emacs.d/elpa/corfu-20260813.950/corfu.el
(defun corfu--done (str status cands)
  "Exit completion and call the exit function with STR and STATUS.
Lookup STR in CANDS to restore text properties."
  (let ((completion-extra-properties (nth 4 completion-in-region--data)))
    ;; For successful completions, amalgamate undo operations,
    ;; such that completion can be undone in a single step.
    (undo-amalgamate-change-group corfu--change-group)
    (corfu-quit)
    (corfu--exit-function str status cands)))