Function: corfu--move-prefix-candidates-to-front
corfu--move-prefix-candidates-to-front is a natively compiled function
defined in corfu.el.
Signature
(corfu--move-prefix-candidates-to-front FIELD CANDS)
Documentation
Move CANDS which match prefix of FIELD to the beginning.
Source Code
;; Defined in /nix/store/za087xxa0z5mirfbbagrp0qfaqnfn5wb-emacs-packages-deps/share/emacs/site-lisp/elpa/corfu-20260913.1527/corfu.el
(defun corfu--move-prefix-candidates-to-front (field cands)
"Move CANDS which match prefix of FIELD to the beginning."
(let* ((word (substring field 0
(seq-position field corfu-separator)))
(len (length word)))
(corfu--partition!
cands
(and (>= (length it) len)
(eq t (compare-strings word 0 len it 0 len
completion-ignore-case))))))