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

(replace_buffer_in_all_windows): Only re-select old

window if it is still live.
parent 6cfd21c9
......@@ -1649,7 +1649,8 @@ replace_buffer_in_all_windows (buffer)
window_loop (UNSHOW_BUFFER, buffer, 0, frame);
Fselect_window (old_selected);
if (!NILP (Fwindow_live_p (old_selected)))
Fselect_window (old_selected);
window_loop (UNSHOW_BUFFER, buffer, 0, Qt);
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