From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by melb.werple.net.au (8.7.4/8.7.3) with ESMTP id HAA09664 for ; Tue, 19 Mar 1996 07:24:07 +1100 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id PAA15092; Mon, 18 Mar 1996 15:06:22 -0500 (EST) Resent-Date: Mon, 18 Mar 1996 15:06:22 -0500 (EST) From: Zoltan Hidvegi Message-Id: <199603182005.VAA01108@bolyai.cs.elte.hu> Subject: Completion fix To: zsh-workers@math.gatech.edu (zsh-workers) 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 X-Mailer: ELM [version 2.4 PL25 ME8b+] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"JKcR43.0.kh3.-8SJn"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/841 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Try: bolyai ~ % compctl -l '' foo bolyai ~ % compctl -x 's[-]' -k (foo bar) -- bar bolyai ~ % foo bar - 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 ----