changeset 5096:76f878905c65

(window_loop, case DELETE_BUFFER_WINDOWS): Select a new buffer only if w is selected window.
author Richard M. Stallman <rms@gnu.org>
date Sun, 21 Nov 1993 22:15:04 +0000
parents 976d7492e00e
children a0a5b39e3d22
files src/window.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/window.c	Sun Nov 21 10:04:52 1993 +0000
+++ b/src/window.c	Sun Nov 21 22:15:04 1993 +0000
@@ -1212,7 +1212,8 @@
 		      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);