diff src/buffer.c @ 1253:7afcf7be0d30

* data.c (Frem): Use the `fmod' function under SunOS, Ultrix, and HP/UX, not just under USG systems.
author Jim Blandy <jimb@redhat.com>
date Tue, 29 Sep 1992 04:54:28 +0000
parents 86a17674c2a1
children 1f6cfa3ea4cb
line wrap: on
line diff
--- a/src/buffer.c	Tue Sep 29 04:08:04 1992 +0000
+++ b/src/buffer.c	Tue Sep 29 04:54:28 1992 +0000
@@ -931,7 +931,7 @@
     }
 
   /* Remove it from the screen.  */
-  if (EQ (buf, XWINDOW (selected_frame)->buffer))
+  if (EQ (buf, XWINDOW (selected_window)->buffer))
     Fswitch_to_buffer (Fother_buffer (buf), Qnil);
 
   /* Move it to the end of the buffer list.  */