changeset 27990:723662ab7db4

(try_window_id): Recompute unchanged information if it is invalid.
author Gerd Moellmann <gerd@gnu.org>
date Sun, 05 Mar 2000 10:21:53 +0000
parents 3371488e8406
children cf10555b8ce0
files src/xdisp.c
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Sat Mar 04 16:04:15 2000 +0000
+++ b/src/xdisp.c	Sun Mar 05 10:21:53 2000 +0000
@@ -10034,7 +10034,9 @@
      only if buffer has really changed.  The reason is that the gap is
      initially at Z for freshly visited files.  The code below would
      set end_unchanged to 0 in that case.  */
-  if (MODIFF > SAVE_MODIFF)
+  if (MODIFF > SAVE_MODIFF
+      /* This seems to happen sometimes after saving a buffer.  */
+      || BEG_UNCHANGED + END_UNCHANGED > Z_BYTE)
     {
       if (GPT - BEG < BEG_UNCHANGED)
 	BEG_UNCHANGED = GPT - BEG;
@@ -10042,10 +10044,6 @@
 	END_UNCHANGED = Z - GPT;
     }
 
-  /* Some strange bug seems to be causing that to happen sometimes.  */
-  if (BEG_UNCHANGED + END_UNCHANGED > Z_BYTE)
-    abort ();
-  
   /* If window starts after a line end, and the last change is in
      front of that newline, then changes don't affect the display.
      This case happens with stealth-fontification.  */