about summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2011-03-28 04:50:20 +0000
committerBart Schaefer <barts@users.sourceforge.net>2011-03-28 04:50:20 +0000
commit67847a96ee2bff708b2f7b6ec25cc850f818ea46 (patch)
treeb4807171d6bf207ee59e3ccedda1118943f09ff3 /Src/Zle
parente4059eedc7e825c0711981d4035ab138b1fb21e4 (diff)
downloadzsh-67847a96ee2bff708b2f7b6ec25cc850f818ea46.tar.gz
zsh-67847a96ee2bff708b2f7b6ec25cc850f818ea46.tar.xz
zsh-67847a96ee2bff708b2f7b6ec25cc850f818ea46.zip
28926: No newline after the last line in listlist() when printing the list
in a single column.
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/zle_tricky.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c
index 74ebf0981..d3e30950d 100644
--- a/Src/Zle/zle_tricky.c
+++ b/Src/Zle/zle_tricky.c
@@ -2650,7 +2650,9 @@ listlist(LinkList l)
     } else {
 	for (p = data; *p; p++) {
 	    nicezputs(*p, shout);
-	    putc('\n', shout);
+	    /* One column: newlines between elements, not after the last */
+	    if (p[1])
+		putc('\n', shout);
 	}
     }
     if (clearflag) {