From: Zoltan Hidvegi <hzoli@cs.elte.hu>
To: zsh-workers@math.gatech.edu (zsh-workers)
Subject: Completion fix
Date: Mon, 18 Mar 1996 21:05:28 +0100 (MET) [thread overview]
Message-ID: <199603182005.VAA01108@bolyai.cs.elte.hu> (raw)
Try:
bolyai ~ % compctl -l '' foo
bolyai ~ % compctl -x 's[-]' -k (foo bar) -- bar
bolyai ~ % foo bar -<TAB>
You get no completion.
Here is the fix.
Zoltan
*** Src/zle_tricky.c 1996/03/05 01:44:31 1.24
--- Src/zle_tricky.c 1996/03/17 14:21:13
***************
*** 1834,1839 ****
--- 1834,1840 ----
/* And probably put the command name given to the flag in the
array. */
clwpos++;
+ clwnum++;
incmd = 0;
ops = clwords[ra - 1];
clwords[ra - 1] = cmdstr = ret->subcmd;
***************
*** 1842,1848 ****
cmdstr = clwords[ra];
incmd = !clwpos;
clwords += ra;
- clwnum--;
}
*compadd = 0;
if (ccmain != &cc_dummy)
--- 1843,1848 ----
next reply other threads:[~1996-03-18 20:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-03-18 20:05 Zoltan Hidvegi [this message]
1997-02-07 11:16 completion fix 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=199603182005.VAA01108@bolyai.cs.elte.hu \
--to=hzoli@cs.elte.hu \
--cc=zsh-workers@math.gatech.edu \
/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).