From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19710 invoked from network); 16 Jun 1997 05:31:59 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 16 Jun 1997 05:31:59 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id BAA09677; Mon, 16 Jun 1997 01:24:16 -0400 (EDT) Resent-Date: Mon, 16 Jun 1997 01:24:16 -0400 (EDT) From: Zoltan Hidvegi Message-Id: <199706160528.BAA06387@hzoli.home> Subject: autoparamkeys & completeinword in 3.0.3 To: zsh-workers@math.gatech.edu (Zsh hacking and development) Date: Mon, 16 Jun 1997 01:28:01 -0400 (EDT) X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"dpC7Z3.0.8N2.0uCfp"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3247 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu % zsh-3.0.3 -f hzoli% setopt autoparamkeys completeinword hzoli% echo $ZSHSION Cursor here: ^ press TAB then `:' hzoli% echo $ZSH_VE:SION The patch below fixes that. This is for zsh-3.0.3 but should also be applied to zsh-3.1.2 (in the Src/Zle subdirectory). Unfortunately zsh-3.1.2 has some more fundamental problems here, which will hopefully be addressed in a separate patch. Zoltan *** Src/zle_tricky.c Tue Jun 3 03:01:01 1997 --- Src/zle_tricky.c Mon Jun 16 00:45:07 1997 *************** *** 2326,2332 **** /* Now make sure that the cursor is inside the name. */ if (offs <= e - s && offs >= b - s && n <= 0) { /* It is, set complexpect. */ ! if (cs == we || ! *e || *e == ' ') complexpect = br; /* Get the prefix (anything up to the character before the name). */ *e = '\0'; --- 2326,2332 ---- /* Now make sure that the cursor is inside the name. */ if (offs <= e - s && offs >= b - s && n <= 0) { /* It is, set complexpect. */ ! if (offs == e - s) complexpect = br; /* Get the prefix (anything up to the character before the name). */ *e = '\0';