changeset 17226:8a8bcf6d7a0c

(Fset_window_buffer): Increment display_count if it is an integer.
author Richard M. Stallman <rms@gnu.org>
date Sat, 22 Mar 1997 04:18:04 +0000
parents 739e41eed8b6
children d11d6c9a48e8
files src/window.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/window.c	Sat Mar 22 04:17:06 1997 +0000
+++ b/src/window.c	Sat Mar 22 04:18:04 1997 +0000
@@ -1874,6 +1874,9 @@
 
   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;