Don't allow (minibuffer-window-active-p nil) to return t
* lisp/window.el (minibuffer-window-active-p): Return t only if WINDOW is a live window.
This commit is contained in:
parent
cc8f72ca22
commit
451823b0e5
1 changed files with 1 additions and 1 deletions
|
@ -2583,7 +2583,7 @@ and no others."
|
|||
|
||||
(defun minibuffer-window-active-p (window)
|
||||
"Return t if WINDOW is the currently active minibuffer window."
|
||||
(eq window (active-minibuffer-window)))
|
||||
(and (window-live-p window) (eq window (active-minibuffer-window))))
|
||||
|
||||
(defun count-windows (&optional minibuf)
|
||||
"Return the number of live windows on the selected frame.
|
||||
|
|
Loading…
Add table
Reference in a new issue