From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: Oliver Kiddle: compctl -l broken and function installation
Date: Wed, 9 Jun 1999 11:27:05 +0200 (MET DST) [thread overview]
Message-ID: <199906090927.LAA20963@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Peter Stephenson's message of Wed, 09 Jun 1999 10:39:39 +0200
Oliver Kiddle wrote:
> The -l option to compctl seems to be broken. I first noticed this a
> while ago (about pws-18), it exists in pws-21 but wasn't there in a
> pws-16 I had lying about.
>
> For example:
> zsh -f
> compctl -l '' t
> t <tab>
>
> Gives a beep.
ccont was set to zero which caused the test after trying the
(non-existent) pattern compctl's to succeed -- and hence the
completion code stopped trying to generate matches.
The patch also makes `compctl -h' use ccont.
Bye
Sven
diff -u os/Zle/zle_tricky.c Src/Zle/zle_tricky.c
--- os/Zle/zle_tricky.c Tue Jun 8 15:23:27 1999
+++ Src/Zle/zle_tricky.c Wed Jun 9 11:22:28 1999
@@ -5026,7 +5026,8 @@
char **ow = clwords, *os = cmdstr, *oqp = qipre, *oqs = qisuf;
int olws = clwsize, olwn = clwnum, olwp = clwpos;
int obr = brange, oer = erange, oof = offs;
-
+ unsigned long occ = ccont;
+
clwsize = clwnum = countlinknodes(foo);
clwords = (char **) zalloc((clwnum + 1) * sizeof(char *));
for (n = firstnode(foo), i = 0; n; incnode(n), i++) {
@@ -5041,7 +5042,9 @@
qipre = qp;
qisuf = qs;
offs = soffs;
+ ccont = CC_CCCONT;
makecomplistcmd(ns, !clwpos, CFN_FIRST);
+ ccont = occ;
offs = oof;
zsfree(cmdstr);
cmdstr = os;
@@ -6500,7 +6503,7 @@
int oldn = clwnum, oldp = clwpos;
unsigned long occ = ccont;
- ccont = 0;
+ ccont = CC_CCCONT;
/* So we restrict the words-array. */
if (brange >= clwnum)
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~1999-06-09 9:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-09 9:27 Sven Wischnowsky [this message]
1999-06-09 10:25 ` Andrej Borsenkow
-- strict thread matches above, loose matches on Subject: below --
1999-06-09 8:39 Peter Stephenson
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=199906090927.LAA20963@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.auc.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).