diff src/editfns.c @ 71865:47930f9fbcdf

(Fformat): Fix calculation of text property positions of format string.
author Kenichi Handa <handa@m17n.org>
date Thu, 13 Jul 2006 06:03:33 +0000
parents e891eb992cb2
children 6d29dff081c5
line wrap: on
line diff
--- a/src/editfns.c	Wed Jul 12 23:52:18 2006 +0000
+++ b/src/editfns.c	Thu Jul 13 06:03:33 2006 +0000
@@ -3886,7 +3886,7 @@
 	      /* Likewise adjust the property end position.  */
 	      pos = XINT (XCAR (XCDR (item)));
 
-	      for (; bytepos < pos; bytepos++)
+	      for (; position < pos; bytepos++)
 		{
 		  if (! discarded[bytepos])
 		    position++, translated++;