zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: fix compctl "-y" to obey LISTPACKED, LISTROWSFIRST
@ 2003-02-05  0:41 Greg Klanderman
  0 siblings, 0 replies; only message in thread
From: Greg Klanderman @ 2003-02-05  0:41 UTC (permalink / raw)
  To: Zsh list


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) {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-02-05  0:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-05  0:41 PATCH: fix compctl "-y" to obey LISTPACKED, LISTROWSFIRST Greg Klanderman

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).