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

Re: error in 19.3.1



Roman Neuhauser wrote:
> This is near the end of 19.3.1:

(The section numbers aren't particularly easy to trace back to the
documentation source, so names are probably more convenient.)

> For example:
> 
> zstyle -e ':completion:*' completer '
>     if [[ $words[1] = cvs ]]; then
>       reply=(_complete)
>     else
>       reply=(_complete _approximate)
>     fi'
> 
> uses the value `_complete' for the completer style in most contexts, but
> the value `_complete _approximate' when the first word on the command
> line is `cvs'.

You mean the code should be the other way round?

Index: Doc/Zsh/compsys.yo
===================================================================
RCS file: /cvsroot/zsh/zsh/Doc/Zsh/compsys.yo,v
retrieving revision 1.190
diff -u -r1.190 compsys.yo
--- Doc/Zsh/compsys.yo	21 Aug 2006 14:24:49 -0000	1.190
+++ Doc/Zsh/compsys.yo	20 Sep 2006 09:24:53 -0000
@@ -593,9 +593,9 @@
 
 example(zstyle -e ':completion:*' completer '
     if [[ $words[1] = cvs ]]; then
-      reply=(_complete)
-    else
       reply=(_complete _approximate)
+    else
+      reply=(_complete)
     fi')
 
 uses the value `tt(_complete)' for the tt(completer) style in most

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


To access the latest news from CSR copy this link into a web browser:  http://www.csr.com/email_sig.php



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