Mercurial > emacs
diff src/editfns.c @ 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 | 48a5d83a7c9d |
children | a0208539b9a3 7beb78bc1f8e |
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])) {