(next_overlay_string): Don't set overlay_strings_at_end_processed_p if

we're currently reading from a display string.
This commit is contained in:
Chong Yidong 2008-02-29 03:12:27 +00:00
parent 60221a3323
commit eb14d4267d

View file

@ -4834,7 +4834,7 @@ next_overlay_string (it)
/* If we're at the end of the buffer, record that we have
processed the overlay strings there already, so that
next_element_from_buffer doesn't try it again. */
if (IT_CHARPOS (*it) >= it->end_charpos)
if (NILP (it->string) && IT_CHARPOS (*it) >= it->end_charpos)
it->overlay_strings_at_end_processed_p = 1;
/* If we have to display `...' for invisible text, set