Function: consult--line-match

consult--line-match is a byte-compiled function defined in consult.el.

Signature

(consult--line-match SELECTED CANDIDATES INPUT &rest _)

Documentation

Lookup position of match.

SELECTED is the currently selected candidate. CANDIDATES is the list of candidates. INPUT is the input string entered by the user.

Source Code

;; Defined in ~/.emacs.d/elpa/consult-20260805.1130/consult.el
(defun consult--line-match (selected candidates input &rest _)
  "Lookup position of match.
SELECTED is the currently selected candidate.
CANDIDATES is the list of candidates.
INPUT is the input string entered by the user."
  (consult--line-point-placement selected candidates
                                 (and (not (string-blank-p input))
                                      (car (consult--completion-filter
                                            input
                                            (list (substring-no-properties selected))
                                            'consult-location 'highlight)))
                                 'completions-first-difference))