Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
autoparamkeys & completeinword in 3.0.3
- X-seq: zsh-workers 3247
- From: Zoltan Hidvegi <hzoli@xxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx (Zsh hacking and development)
- Subject: autoparamkeys & completeinword in 3.0.3
- Date: Mon, 16 Jun 1997 01:28:01 -0400 (EDT)
% 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';
Messages sorted by:
Reverse Date,
Date,
Thread,
Author