Commit c81845b6 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(quit-window): Fixed FRAME to be the frame and never window.

parent 6c0316ae
......@@ -303,7 +303,7 @@ If WINDOW is non-nil, it specifies a window; we delete that window,
and the buffer that is killed or buried is the one in that window."
(interactive "P")
(let ((buffer (window-buffer window))
(frame (if window (window-frame window) (selected-window)))
(frame (window-frame (or window (selected-window))))
(if window
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