Function: completion--selected-candidate

completion--selected-candidate is a byte-compiled function defined in minibuffer.el.gz.

Signature

(completion--selected-candidate)

Documentation

Return the selected completion candidate if any.

Source Code

;; Defined in /usr/src/emacs/lisp/minibuffer.el.gz
(defun completion--selected-candidate ()
  "Return the selected completion candidate if any."
  (when-let* ((window (minibuffer--completions-visible)))
    (with-current-buffer (window-buffer window)
      (get-text-property (point) 'completion--string))))