# HG changeset patch # User Gerd Moellmann # Date 985977315 0 # Node ID 2225c7aa0a64b6f6d04b8e4748615d40202ac1b7 # Parent 3fd2176c610c4ccee0968804721a15cd1e8a2583 (get_overlay_strings): Set iterator's end_charpos. (set_iterator_to_next): If a string from a display property ends, consider the case that this might also be the end of an overlay string having the display property. diff -r 3fd2176c610c -r 2225c7aa0a64 src/xdisp.c --- a/src/xdisp.c Fri Mar 30 17:52:51 2001 +0000 +++ b/src/xdisp.c Fri Mar 30 18:35:15 2001 +0000 @@ -3595,8 +3595,9 @@ /* Set up IT to deliver display elements from the first overlay string. */ IT_STRING_CHARPOS (*it) = IT_STRING_BYTEPOS (*it) = 0; + it->string = it->overlay_strings[0]; it->stop_charpos = 0; - it->string = it->overlay_strings[0]; + it->end_charpos = XSTRING (it->string)->size; it->multibyte_p = STRING_MULTIBYTE (it->string); xassert (STRINGP (it->string)); it->method = next_element_from_string; @@ -4375,6 +4376,8 @@ pop_it (it); if (!STRINGP (it->string)) it->method = next_element_from_buffer; + else + goto consider_string_end; } } }