Function: consult--completion-window-p

consult--completion-window-p is a byte-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 ~/.emacs.d/elpa/consult-20260805.1130/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)))))