changeset 62600:888743d356d9

(display_mode_element): If we're processing a list and padding is specified, put it after the last element.
author Richard M. Stallman <rms@gnu.org>
date Sun, 22 May 2005 02:53:44 +0000
parents d419c1ab3f39
children 15e35985d6aa
files src/xdisp.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Sun May 22 02:30:41 2005 +0000
+++ b/src/xdisp.c	Sun May 22 02:53:44 2005 +0000
@@ -16033,7 +16033,12 @@
 		   && --limit > 0
 		   && (precision <= 0 || n < precision))
 	      {
-		n += display_mode_element (it, depth, field_width - n,
+		n += display_mode_element (it, depth,
+					   /* Do padding only after the last
+					      element in the list.  */
+					   (! CONSP (XCDR (elt))
+					    ? field_width - n
+					    : 0),
 					   precision - n, XCAR (elt),
 					   props, risky);
 		elt = XCDR (elt);