summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-03-22 04:18:04 +0000
committerRichard M. Stallman <rms@gnu.org>1997-03-22 04:18:04 +0000
commit92a155b59118ebcd8e76a51bbdf67daa459e1cb4 (patch)
tree38a8c91765d1947e1ecbbe1b867b490cf4b8ccdd /src/window.c
parent6fc1b02894b9b198b0d096cf89139656a2bb00f5 (diff)
downloademacs-92a155b59118ebcd8e76a51bbdf67daa459e1cb4.tar.gz
(Fset_window_buffer): Increment display_count if it is an integer.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c3
1 files changed, 3 insertions, 0 deletions
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;