Commit 9578c2aa authored by Stephen Leake's avatar Stephen Leake
Browse files

Fix a simple bug in display-buffer-use-some-frame

* lisp/window.el (display-buffer-use-some-frame): Simplify the
predicate, fix TYPE arg to window--display-buffer.
parent 0f9be727
Pipeline #363 failed with stage
in 4 seconds
......@@ -7114,9 +7114,7 @@ that allows the selected frame)."
(or (cdr (assq 'frame-predicate alist))
(lambda (frame)
(and (not (eq frame (selected-frame)))
(not (window-dedicated-p
(or (get-lru-window frame)
(frame-first-window frame))))))))
(get-lru-window frame)))))
(frame (car (filtered-frame-list predicate)))
(and frame
......@@ -7125,7 +7123,7 @@ that allows the selected frame)."
(when window
buffer window 'frame alist display-buffer-mark-dedicated)
buffer window 'reuse alist display-buffer-mark-dedicated)
(unless (cdr (assq 'inhibit-switch-frame alist))
(window--maybe-raise-frame frame))))))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment