Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: fix compctl "-y" to obey LISTPACKED, LISTROWSFIRST
- X-seq: zsh-workers 18191
- From: gak@xxxxxxxxxxxxxx (Greg Klanderman)
- To: zsh-workers@xxxxxxxxxx (Zsh list)
- Subject: PATCH: fix compctl "-y" to obey LISTPACKED, LISTROWSFIRST
- Date: Tue, 4 Feb 2003 19:41:36 -0500 (EST)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Reply-to: gak@xxxxxxxxxxxxxx
Hi,
In the development CVS tree (4.1.0-dev), displayed completions derived
from compctl "-y" always display in the LISTPACKED and LISTROWSFIRST
style, no matter how these options are set (the options are not even
set by default).
The bug also exists in 4.0.6, and this patch should apply cleanly if
you first apply the patch I am about to submit to get compctl "-y" to
work at all in that version.
thanks
Greg
Index: compresult.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/compresult.c,v
retrieving revision 1.47
diff -u -r1.47 compresult.c
--- compresult.c 13 Jan 2003 10:32:03 -0000 1.47
+++ compresult.c 5 Feb 2003 00:18:56 -0000
@@ -1408,6 +1408,13 @@
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) {
Messages sorted by:
Reverse Date,
Date,
Thread,
Author