aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman2005-10-28 16:26:45 +0000
committerRichard M. Stallman2005-10-28 16:26:45 +0000
commit8f2c9ed8c9cb82dbfb9f9622e2285eccbc63ddf7 (patch)
tree74cf00691569368734245dc00d39818b48d1ee3e /src
parent745575ff149a7ceab51241854d8e0014f2c1dbdb (diff)
downloademacs-8f2c9ed8c9cb82dbfb9f9622e2285eccbc63ddf7.tar.gz
emacs-8f2c9ed8c9cb82dbfb9f9622e2285eccbc63ddf7.zip
(Fformat): Don't include string padding
between info[n].start and info[n].end.
Diffstat (limited to 'src')
-rw-r--r--src/editfns.c6
1 files 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) */)
3662 ++nchars; 3662 ++nchars;
3663 } 3663 }
3664 3664
3665 start = nchars; 3665 info[n].start = start = nchars;
3666 nchars += nchars_string; 3666 nchars += nchars_string;
3667 end = nchars; 3667 end = nchars;
3668 3668
@@ -3677,6 +3677,8 @@ usage: (format STRING &rest OBJECTS) */)
3677 nbytes, 3677 nbytes,
3678 STRING_MULTIBYTE (args[n]), multibyte); 3678 STRING_MULTIBYTE (args[n]), multibyte);
3679 3679
3680 info[n].end = nchars;
3681
3680 if (negative) 3682 if (negative)
3681 while (padding-- > 0) 3683 while (padding-- > 0)
3682 { 3684 {
@@ -3713,9 +3715,9 @@ usage: (format STRING &rest OBJECTS) */)
3713 else 3715 else
3714 p += this_nchars; 3716 p += this_nchars;
3715 nchars += this_nchars; 3717 nchars += this_nchars;
3718 info[n].end = nchars;
3716 } 3719 }
3717 3720
3718 info[n].end = nchars;
3719 } 3721 }
3720 else if (STRING_MULTIBYTE (args[0])) 3722 else if (STRING_MULTIBYTE (args[0]))
3721 { 3723 {