aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 80d4ece06a1..1d363738342 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -931,7 +931,7 @@ If BUFFER is omitted, the current buffer is buried.")
931 } 931 }
932 932
933 /* Remove it from the screen. */ 933 /* Remove it from the screen. */
934 if (EQ (buf, XWINDOW (selected_frame)->buffer)) 934 if (EQ (buf, XWINDOW (selected_window)->buffer))
935 Fswitch_to_buffer (Fother_buffer (buf), Qnil); 935 Fswitch_to_buffer (Fother_buffer (buf), Qnil);
936 936
937 /* Move it to the end of the buffer list. */ 937 /* Move it to the end of the buffer list. */