Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Completion fix
- X-seq: zsh-workers 841
- From: Zoltan Hidvegi <hzoli@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx (zsh-workers)
- Subject: Completion fix
- Date: Mon, 18 Mar 1996 21:05:28 +0100 (MET)
- Organization: Dept. of Comp. Sci., Eotvos University, Budapest, Hungary
- Phone: (36 1)2669833 ext: 2667, home phone: (36 1) 2752368
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 ----
Messages sorted by:
Reverse Date,
Date,
Thread,
Author