about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorBart Schaefer <schaefer@ipost.com>2021-02-04 17:52:22 -0800
committerBart Schaefer <schaefer@ipost.com>2021-02-04 17:52:22 -0800
commit465738fc2594ac4629de341738a106184858c678 (patch)
tree8a5821b69fe7fc84215d26cde0f6c1b7b49e4775 /Src
parentb803fbaa145e2d6eb7a427749fc03e3ead4da913 (diff)
downloadzsh-465738fc2594ac4629de341738a106184858c678.tar.gz
zsh-465738fc2594ac4629de341738a106184858c678.tar.xz
zsh-465738fc2594ac4629de341738a106184858c678.zip
47895: Remove trailing spaces from "print -ac" output lines.
Diffstat (limited to 'Src')
-rw-r--r--Src/builtin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index 09eb3728c..35a0fb2db 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -4822,7 +4822,7 @@ bin_print(char *name, char **args, Options ops, int func)
 		{
 		    fwrite(args[n], len[n], 1, fout);
 		    l = widths[n];
-		    if (n < argc)
+		    if (n < argc && ic < nc - 1)
 			for (; l < sc; l++)
 			    fputc(' ', fout);
 		}