(replace_buffer_in_all_windows): Only re-select old
window if it is still live.
This commit is contained in:
parent
6cfd21c904
commit
7b9af7a02a
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue