changeset 77475:6423e582c81d EMACS_22_BRANCHPOINT

(redisplay_window): Use BEG_UNCHANGED and END_UNCHANGED values of the actual window.
author Chong Yidong <cyd@stupidchicken.com>
date Tue, 24 Apr 2007 01:32:41 +0000
parents 80299860c7c7
children 9eb2edbd68cf ec17c579e277
files src/xdisp.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Tue Apr 24 01:32:31 2007 +0000
+++ b/src/xdisp.c	Tue Apr 24 01:32:41 2007 +0000
@@ -12777,8 +12777,7 @@
   int rc;
   int centering_position = -1;
   int last_line_misfit = 0;
-  int save_beg_unchanged = BEG_UNCHANGED;
-  int save_end_unchanged = END_UNCHANGED;
+  int save_beg_unchanged, save_end_unchanged;
 
   SET_TEXT_POS (lpoint, PT, PT_BYTE);
   opoint = lpoint;
@@ -12843,6 +12842,9 @@
   set_buffer_internal_1 (XBUFFER (w->buffer));
   SET_TEXT_POS (opoint, PT, PT_BYTE);
 
+  save_beg_unchanged = BEG_UNCHANGED;
+  save_end_unchanged = END_UNCHANGED;
+
   current_matrix_up_to_date_p
     = (!NILP (w->window_end_valid)
        && !current_buffer->clip_changed