diff options
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 c0a881b45..b07e71aff 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) { |