18191: from Greg Klanderman: compctl -y didn't respect list arrangement

options listpacked and listrowsfirst.
This commit is contained in:
Peter Stephenson 2003-02-06 10:29:30 +00:00
parent 590a26709a
commit 809ab19dff
2 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2003-02-06 Peter Stephenson <pws@csr.com>
* Greg Klanderman <gak@klanderman.net>: 18191:
Src/Zle/compresult.c: `compctl -y' didn't obey the listpacked
and listrowsfirst options.
2003-02-05 Peter Stephenson <pws@csr.com>
* 18195: Doc/Zsh/builtins.yo Src/builtin.c Src/utils.c

View file

@ -1408,6 +1408,13 @@ calclist(int showall)
g->flags |= CGF_PACKED | CGF_ROWS;
if (!onlyexpl && pp) {
if (*pp) {
if (!isset(LISTPACKED))
g->flags &= ~CGF_PACKED;
if (!isset(LISTROWSFIRST))
g->flags &= ~CGF_ROWS;
}
/* We have an ylist, lets see, if it contains newlines. */
hidden = 1;
while (!nl && *pp) {