changeset 59409:0e57f1b0b700

(set_iterator_to_next): Fix 2004-12-13 change. Set stop_charpos to current charpos instead of 0.
author Kim F. Storm <storm@cua.dk>
date Fri, 07 Jan 2005 13:13:05 +0000
parents 59e7d7c60403
children ae92bd0348cd
files src/xdisp.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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)