(next_element_from_buffer): Change assertion at the end
authorGerd Moellmann <gerd@gnu.org>
Fri, 31 Dec 1999 15:35:03 +0000 (15:35 +0000)
committerGerd Moellmann <gerd@gnu.org>
Fri, 31 Dec 1999 15:35:03 +0000 (15:35 +0000)
because it doesn't hold when there's an overlay string at the end
from which we deliver an image.

src/ChangeLog
src/xdisp.c

index 34e6123..079be72 100644 (file)
@@ -1,3 +1,9 @@
+1999-12-31  Gerd Moellmann  <gerd@gnu.org>
+
+       * xdisp.c (next_element_from_buffer): Change assertion at the end
+       because it doesn't hold when there's an overlay string at the end
+       from which we deliver an image.
+
 1999-12-31  William M. Perry <wmperry@gnu.org>
 
        * xfns.c (enum jpeg_keyword_index): Add JPEG_DATA.
index 46240df..ddce21e 100644 (file)
@@ -3916,8 +3916,7 @@ next_element_from_buffer (it)
          else
            {
              it->overlay_strings_at_end_processed_p = 1;
-             overlay_strings_follow_p
-               = get_overlay_strings (it);
+             overlay_strings_follow_p = get_overlay_strings (it);
            }
 
          if (overlay_strings_follow_p)
@@ -3994,7 +3993,7 @@ next_element_from_buffer (it)
     }
 
   /* Value is zero if end of buffer reached.  */
-  xassert (!success_p || it->len > 0);
+  xassert (!success_p || it->what != IT_CHARACTER || it->len > 0);
   return success_p;
 }