zsh-workers
 help / color / mirror / code / Atom feed
* autoparamkeys & completeinword in 3.0.3
@ 1997-06-16  5:28 Zoltan Hidvegi
  0 siblings, 0 replies; only message in thread
From: Zoltan Hidvegi @ 1997-06-16  5:28 UTC (permalink / raw)
  To: Zsh hacking and development

% 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';


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-06-16  5:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-06-16  5:28 autoparamkeys & completeinword in 3.0.3 Zoltan Hidvegi

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).