From 809ab19dff75185a805b4cbb31a6b89f225167f4 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 6 Feb 2003 10:29:30 +0000 Subject: 18191: from Greg Klanderman: compctl -y didn't respect list arrangement options listpacked and listrowsfirst. --- Src/Zle/compresult.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Src/Zle/compresult.c') diff --git a/Src/Zle/compresult.c b/Src/Zle/compresult.c index 218afc319..bc6cc36b2 100644 --- a/Src/Zle/compresult.c +++ b/Src/Zle/compresult.c @@ -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) { -- cgit 1.4.1