Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: Re: completion partially stopped to work



Andrej Borsenkow wrote:

> With the latest CVS update:
> 
> bor@itsrm2% zsh -f
> itsrm2% autoload -U compinit; compinit -D
> itsrm2% cdpath=(/tools/src)
> itsrm2% zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}'
> 'm:{a-z}={A-Z} r:
> |[._-]=* r:|=*' 'm:{a-z}={A-Z} r:|[.-]=** r:|=**'
> itsrm2% cd z-bTAB
> B-e-e-p
> itsrm2% ls -d /tools/src/zsh-build
> /tools/src/zsh-build

Oops. _complete returned the return value from _first.

And a similar problem in _normal.

Bye
 Sven

Index: Completion/Core/_complete
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Core/_complete,v
retrieving revision 1.5
diff -u -r1.5 _complete
--- Completion/Core/_complete	2000/06/28 14:27:26	1.5
+++ Completion/Core/_complete	2000/06/29 08:18:50
@@ -39,6 +39,7 @@
 
 # For arguments and command names we use the `_normal' function.
 
+ret=1
 if [[ "$compstate[context]" = command ]]; then
   curcontext="$oldcontext"
   _normal -s && ret=0
Index: Completion/Core/_normal
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Core/_normal,v
retrieving revision 1.3
diff -u -r1.3 _normal
--- Completion/Core/_normal	2000/06/07 11:21:42	1.3
+++ Completion/Core/_normal	2000/06/29 08:18:50
@@ -68,6 +68,7 @@
 
 # Now look up the two names in the normal completion array.
 
+ret=1
 name="$cmd1"
 comp="$_comps[$cmd1]"
 

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author