Function: corfu--exit-function

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

Signature

(corfu--exit-function STR STATUS CANDS)

Documentation

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--exit-function (str status cands)
  "Call the `:exit-function' with STR and STATUS.
Lookup STR in CANDS to restore text properties."
  (when-let* ((exit (plist-get completion-extra-properties :exit-function)))
    (funcall exit (or (car (member str cands)) str) status)))