diff options
author | Paul Ackersviller <packersv@users.sourceforge.net> | 2007-05-29 02:46:46 +0000 |
---|---|---|
committer | Paul Ackersviller <packersv@users.sourceforge.net> | 2007-05-29 02:46:46 +0000 |
commit | d9544f55dab0d825c59b9a4100ac2d97a9427569 (patch) | |
tree | b48320fb8850033791fa7bdb51d44e87c43c0d52 /Src | |
parent | 8b8f780cb22fbb616720897120c2ff76c28479e7 (diff) | |
download | zsh-d9544f55dab0d825c59b9a4100ac2d97a9427569.tar.gz zsh-d9544f55dab0d825c59b9a4100ac2d97a9427569.tar.xz zsh-d9544f55dab0d825c59b9a4100ac2d97a9427569.zip |
Merge of 20162: in printlist() don't output new line if we haven't printed anything.
Diffstat (limited to 'Src')
-rw-r--r-- | Src/Zle/compresult.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Src/Zle/compresult.c b/Src/Zle/compresult.c index 213189f11..ae7b3a3d0 100644 --- a/Src/Zle/compresult.c +++ b/Src/Zle/compresult.c @@ -1855,8 +1855,7 @@ printlist(int over, CLPrintFunc printm, int showall) if (tccan(TCCLEAREOD)) tcout(TCCLEAREOD); } - g = amatches; - while (g) { + for (g = amatches; g; g = g->next) { char **pp = g->ylist; if ((e = g->expls)) { @@ -2023,10 +2022,10 @@ printlist(int over, CLPrintFunc printm, int showall) p = skipnolist(p + 1, showall); } } - } + } else + continue; if (g->lcount || (showall && g->mcount)) pnl = 1; - g = g->next; } lastlistlen = 0; if (clearflag) { |