comparison src/xdisp.c @ 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 dd4c7d5e1599
children bf84251f474b
comparison
equal deleted inserted replaced
32552:070ca96fa546 32553:2bd19f54cd7a
3787 void 3787 void
3788 set_iterator_to_next (it, reseat_p) 3788 set_iterator_to_next (it, reseat_p)
3789 struct it *it; 3789 struct it *it;
3790 int reseat_p; 3790 int reseat_p;
3791 { 3791 {
3792 /* Reset flags indicating start and end of a sequence of characters
3793 with box. Reset them at the start of this function because
3794 moving the iterator to a new position might set them. */
3795 it->start_of_box_run_p = it->end_of_box_run_p = 0;
3796
3792 if (it->method == next_element_from_buffer) 3797 if (it->method == next_element_from_buffer)
3793 { 3798 {
3794 /* The current display element of IT is a character from 3799 /* The current display element of IT is a character from
3795 current_buffer. Advance in the buffer, and maybe skip over 3800 current_buffer. Advance in the buffer, and maybe skip over
3796 invisible lines that are so because of selective display. */ 3801 invisible lines that are so because of selective display. */
3910 } 3915 }
3911 else 3916 else
3912 /* There are no other methods defined, so this should be a bug. */ 3917 /* There are no other methods defined, so this should be a bug. */
3913 abort (); 3918 abort ();
3914 3919
3915 /* Reset flags indicating start and end of a sequence of
3916 characters with box. */
3917 it->start_of_box_run_p = it->end_of_box_run_p = 0;
3918
3919 xassert (it->method != next_element_from_string 3920 xassert (it->method != next_element_from_string
3920 || (STRINGP (it->string) 3921 || (STRINGP (it->string)
3921 && IT_STRING_CHARPOS (*it) >= 0)); 3922 && IT_STRING_CHARPOS (*it) >= 0));
3922 } 3923 }
3923 3924