# HG changeset patch # User Kim F. Storm # Date 1105103585 0 # Node ID 0e57f1b0b70015b7c602b0d125a8553dceebde96 # Parent 59e7d7c60403acb4f58a329dd7fbf82d129c2b8b (set_iterator_to_next): Fix 2004-12-13 change. Set stop_charpos to current charpos instead of 0. diff -r 59e7d7c60403 -r 0e57f1b0b700 src/xdisp.c --- a/src/xdisp.c Fri Jan 07 13:12:32 2005 +0000 +++ b/src/xdisp.c Fri Jan 07 13:13:05 2005 +0000 @@ -5187,9 +5187,6 @@ it->dpvec = NULL; it->current.dpvec_index = -1; - /* Recheck faces after display vector */ - it->stop_charpos = 0; - /* Skip over characters which were displayed via IT->dpvec. */ if (it->dpvec_char_len < 0) reseat_at_next_visible_line_start (it, 1); @@ -5198,6 +5195,9 @@ it->len = it->dpvec_char_len; set_iterator_to_next (it, reseat_p); } + + /* Recheck faces after display vector */ + it->stop_charpos = IT_CHARPOS (*it); } } else if (it->method == next_element_from_string)