Commit d895abb0 authored by Richard M. Stallman's avatar Richard M. Stallman

(window_loop, case DELETE_BUFFER_WINDOWS):

Select a new buffer only if w is selected window.
parent 6f759698
......@@ -1212,7 +1212,8 @@ window_loop (type, obj, mini, frames)
new_buffer
= Fget_buffer_create (build_string ("*scratch*"));
Fset_window_buffer (w, new_buffer);
Fset_buffer (XWINDOW (w)->buffer);
if (EQ (w, selected_window))
Fset_buffer (XWINDOW (w)->buffer);
}
else
Fdelete_window (w);
......
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