changeset 66500:8392b2926dd8

(Fformat): Don't include string padding between info[n].start and info[n].end.
author Richard M. Stallman <rms@gnu.org>
date Fri, 28 Oct 2005 16:26:45 +0000
parents 0e243de6311b
children 737938f4c826
files src/editfns.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/editfns.c	Fri Oct 28 16:25:37 2005 +0000
+++ b/src/editfns.c	Fri Oct 28 16:26:45 2005 +0000
@@ -3662,7 +3662,7 @@
 		    ++nchars;
 		  }
 
-	      start = nchars;
+	      info[n].start = start = nchars;
 	      nchars += nchars_string;
 	      end = nchars;
 
@@ -3677,6 +3677,8 @@
 			      nbytes,
 			      STRING_MULTIBYTE (args[n]), multibyte);
 
+	      info[n].end = nchars;
+
 	      if (negative)
 		while (padding-- > 0)
 		  {
@@ -3713,9 +3715,9 @@
 	      else
 		p += this_nchars;
 	      nchars += this_nchars;
+	      info[n].end = nchars;
 	    }
 
-	  info[n].end = nchars;
 	}
       else if (STRING_MULTIBYTE (args[0]))
 	{