(replace_buffer_in_all_windows): Only re-select old

window if it is still live.
This commit is contained in:
Richard M. Stallman 1996-01-05 02:42:32 +00:00
parent 6cfd21c904
commit 7b9af7a02a

View file

@ -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);
#else
window_loop (UNSHOW_BUFFER, buffer, 0, Qt);
#endif