From 8f2c9ed8c9cb82dbfb9f9622e2285eccbc63ddf7 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 28 Oct 2005 16:26:45 +0000 Subject: [PATCH] (Fformat): Don't include string padding between info[n].start and info[n].end. --- src/editfns.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/editfns.c b/src/editfns.c index e7b152726e3..5605a25bdd2 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -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])) { -- 2.39.5