]> code.delx.au - gnu-emacs/commitdiff
(Fformat): Don't include string padding
authorRichard M. Stallman <rms@gnu.org>
Fri, 28 Oct 2005 16:26:45 +0000 (16:26 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 28 Oct 2005 16:26:45 +0000 (16:26 +0000)
between info[n].start and info[n].end.

src/editfns.c

index e7b152726e363c3fc31037eb2b71d7c22d0f4d12..5605a25bdd2ec6561c076b11d466ba4e98dd04d8 100644 (file)
@@ -3662,7 +3662,7 @@ usage: (format STRING &rest OBJECTS)  */)
                    ++nchars;
                  }
 
-             start = nchars;
+             info[n].start = start = nchars;
              nchars += nchars_string;
              end = nchars;
 
@@ -3677,6 +3677,8 @@ usage: (format STRING &rest OBJECTS)  */)
                              nbytes,
                              STRING_MULTIBYTE (args[n]), multibyte);
 
+             info[n].end = nchars;
+
              if (negative)
                while (padding-- > 0)
                  {
@@ -3713,9 +3715,9 @@ usage: (format STRING &rest OBJECTS)  */)
              else
                p += this_nchars;
              nchars += this_nchars;
+             info[n].end = nchars;
            }
 
-         info[n].end = nchars;
        }
       else if (STRING_MULTIBYTE (args[0]))
        {