# HG changeset patch # User Gerd Moellmann # Date 971730209 0 # Node ID 2bd19f54cd7aa0109ca74aa468e227c1f67813bb # Parent 070ca96fa546c2c4b4218f8cfa56e7cf56540915 (set_iterator_to_next): Reset box start and flags of the iterator at the beginning, so that they can be set later on, for instance in reseat_at_next_visible_line_start without being overwritten. diff -r 070ca96fa546 -r 2bd19f54cd7a src/xdisp.c --- a/src/xdisp.c Mon Oct 16 20:11:41 2000 +0000 +++ b/src/xdisp.c Mon Oct 16 21:03:29 2000 +0000 @@ -3789,6 +3789,11 @@ struct it *it; int reseat_p; { + /* Reset flags indicating start and end of a sequence of characters + with box. Reset them at the start of this function because + moving the iterator to a new position might set them. */ + it->start_of_box_run_p = it->end_of_box_run_p = 0; + if (it->method == next_element_from_buffer) { /* The current display element of IT is a character from @@ -3912,10 +3917,6 @@ /* There are no other methods defined, so this should be a bug. */ abort (); - /* Reset flags indicating start and end of a sequence of - characters with box. */ - it->start_of_box_run_p = it->end_of_box_run_p = 0; - xassert (it->method != next_element_from_string || (STRINGP (it->string) && IT_STRING_CHARPOS (*it) >= 0));