Function: corfu--range-valid-p
corfu--range-valid-p is a natively compiled function defined in
corfu.el.
Signature
(corfu--range-valid-p)
Documentation
Check the completion range, return non-nil if valid.
Source Code
;; Defined in /nix/store/za087xxa0z5mirfbbagrp0qfaqnfn5wb-emacs-packages-deps/share/emacs/site-lisp/elpa/corfu-20260913.1527/corfu.el
(defun corfu--range-valid-p ()
"Check the completion range, return non-nil if valid."
(pcase-let ((buf (current-buffer))
(pt (point))
(`(,beg ,end . ,_) completion-in-region--data))
(and beg end
(eq buf (marker-buffer end)) (eq buf (window-buffer))
(<= beg pt end)
(save-excursion (goto-char beg) (<= (pos-bol) pt (pos-eol))))))