Mercurial > emacs
changeset 32553:2bd19f54cd7a
(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.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Mon, 16 Oct 2000 21:03:29 +0000 |
parents | 070ca96fa546 |
children | 4e889a39d953 |
files | src/xdisp.c |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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));