From 850ebd4faba021abb2c3090b17267faef85b7a26 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 22 Mar 1997 04:18:04 +0000 Subject: [PATCH] (Fset_window_buffer): Increment display_count if it is an integer. --- src/window.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/window.c b/src/window.c index 1c90476e35d..2112a1d357a 100644 --- a/src/window.c +++ b/src/window.c @@ -1874,6 +1874,9 @@ BUFFER can be a buffer or buffer name.") if (EQ (window, selected_window)) XBUFFER (w->buffer)->last_selected_window = window; + if (INTEGERP (XBUFFER (buffer)->display_count)) + XSETINT (XBUFFER (buffer)->display_count, + XBUFFER (buffer)->display_count + 1); XSETFASTINT (w->window_end_pos, 0); w->window_end_valid = Qnil; -- 2.39.2