Function: consult--completion-window-p

consult--completion-window-p is a natively compiled function defined in consult.el.

Signature

(consult--completion-window-p)

Documentation

Return non-nil if the selected window belongs to the completion UI.

Source Code

;; Defined in /nix/store/6higv2v1wk916v4ynnybyrdkfy2gq44d-emacs-packages-deps/share/emacs/site-lisp/elpa/consult-20261004.957/consult.el
(defun consult--completion-window-p ()
  "Return non-nil if the selected window belongs to the completion UI."
  (or (eq (selected-window) (active-minibuffer-window))
      (eq #'completion-list-mode (buffer-local-value 'major-mode (window-buffer)))))