From: Zoltan Hidvegi <hzoli@ny.frontiercomm.net>
To: zsh-workers@math.gatech.edu (Zsh hacking and development)
Subject: autoparamkeys & completeinword in 3.0.3
Date: Mon, 16 Jun 1997 01:28:01 -0400 (EDT) [thread overview]
Message-ID: <199706160528.BAA06387@hzoli.home> (raw)
% 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';
reply other threads:[~1997-06-16 5:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=199706160528.BAA06387@hzoli.home \
--to=hzoli@ny.frontiercomm.net \
--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).