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

PATCH: Re: tag-order problem



Tanaka Akira wrote:

> Z(4):akr@serein% Src/zsh -f
> serein% bindkey -e; autoload -U compinit; compinit -D; compdef _tst tst
> serein% zstyle ':completion:*' group-name ''
> serein% zstyle ':completion:*:messages' format %d
> serein% zstyle ':completion:*:descriptions' format %d
> serein% zstyle ':completion:*:*:foo:*' tag-order '*' '*:-case'
> serein% zstyle ':completion:*-case' matcher 'm:{a-z}={A-Z}'
> serein% foo c<TAB>
> file
> config.cache    config.h        config.log      config.sub*     configure.in 
> config.guess*   config.h.in     config.status*  configure*      
> file
> CVS/            Completion/     config.guess*   config.log      configure*
> ChangeLog       Config/         config.h        config.status*  configure.in 
> ChangeLog.3.0   config.cache    config.h.in     config.sub*     
> 
> I think it shouldn't completes two file sets at once.

Oops. Right, thinko.

Bye
 Sven

Index: Completion/Core/_files
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Core/_files,v
retrieving revision 1.10
diff -u -r1.10 _files
--- Completion/Core/_files	2000/05/10 08:00:05	1.10
+++ Completion/Core/_files	2000/05/11 09:10:14
@@ -73,6 +73,7 @@
           _path_files "$expl[@]" -g "$pat" "$opts[@]" && ret=0
         fi
       done
+      (( ret )) || break
     done
   done
   (( ret )) || return 0

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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