]> git.eshelyaron.com Git - emacs.git/commitdiff
(window_loop, case DELETE_BUFFER_WINDOWS):
authorRichard M. Stallman <rms@gnu.org>
Sun, 21 Nov 1993 22:15:04 +0000 (22:15 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 21 Nov 1993 22:15:04 +0000 (22:15 +0000)
Select a new buffer only if w is selected window.

src/window.c

index fdae63a47d5b24d355bfcde8e2033123f4e75791..a288774914bf163b866745a35aa948b086b411ea 100644 (file)
@@ -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);