diff options
author | Bart Schaefer <barts@users.sourceforge.net> | 2011-03-28 04:50:20 +0000 |
---|---|---|
committer | Bart Schaefer <barts@users.sourceforge.net> | 2011-03-28 04:50:20 +0000 |
commit | 67847a96ee2bff708b2f7b6ec25cc850f818ea46 (patch) | |
tree | b4807171d6bf207ee59e3ccedda1118943f09ff3 /Src/Zle | |
parent | e4059eedc7e825c0711981d4035ab138b1fb21e4 (diff) | |
download | zsh-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.c | 4 |
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) { |