zsh-workers
 help / color / mirror / code / Atom feed
From: gak@klanderman.net (Greg Klanderman)
To: zsh-workers@sunsite.dk (Zsh list)
Subject: PATCH: fix compctl "-y" to obey LISTPACKED, LISTROWSFIRST
Date: Tue, 4 Feb 2003 19:41:36 -0500 (EST)	[thread overview]
Message-ID: <15936.24000.946529.760602@phl.itasoftware.com> (raw)


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


                 reply	other threads:[~2003-02-05  0:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15936.24000.946529.760602@phl.itasoftware.com \
    --to=gak@klanderman.net \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).