From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20050 invoked from network); 21 Jan 1999 10:57:05 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 21 Jan 1999 10:57:05 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id FAA24684; Thu, 21 Jan 1999 05:54:13 -0500 (EST) Resent-Date: Thu, 21 Jan 1999 05:54:13 -0500 (EST) Date: Thu, 21 Jan 1999 11:53:05 +0100 (MET) Message-Id: <199901211053.LAA19357@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@math.gatech.edu Subject: Re: experimental new style completion Resent-Message-ID: <"bCCyd.0.a16.LTmfs"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/4942 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu While working on my last patch I found a bug: completion inside `((...))' reported a wrong CONTEXT. Bye Sven *** Src/Zle/zle_tricky.c.old Thu Jan 21 11:48:50 1999 --- Src/Zle/zle_tricky.c Thu Jan 21 11:49:06 1999 *************** *** 3240,3246 **** zsfree(compcontext); zsfree(compcommand); compcommand = ""; ! if (lincmd) compcontext = (insubscr ? "subscript" : "command"); else if (linredir) compcontext = "redirect"; --- 3240,3253 ---- zsfree(compcontext); zsfree(compcommand); compcommand = ""; ! if (inwhat == IN_MATH) { ! if (insubscr) { ! compcontext = "subscript"; ! compcommand = varname ? varname : ""; ! } else ! compcontext = "math"; ! usea = 0; ! } else if (lincmd) compcontext = (insubscr ? "subscript" : "command"); else if (linredir) compcontext = "redirect"; *************** *** 3249,3262 **** case IN_ENV: compcontext = "value"; compcommand = varname; - usea = 0; - break; - case IN_MATH: - if (insubscr) { - compcontext = "subscript"; - compcommand = varname ? varname : ""; - } else - compcontext = "math"; usea = 0; break; case IN_COND: --- 3256,3261 ---- -- Sven Wischnowsky wischnow@informatik.hu-berlin.de