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

Re: zsh 4.3.3 released



Peter Stephenson <pws@xxxxxxx> wrote:
> Thorsten Kampe wrote:
> > Could I have a confirmation for this? Was my informal bug report 
> > sufficient or do you need a more detailed description?!
> 
> I haven't yet understood what the problem actually is, nor reproduced it
> yet.

OK, I've found it; it wasn't too hard---all uses of %{ in completion were
basically broken (I'm incrementing the pointer before instead of after
processing the escape character).  Thanks for the report.  See if there are
any problems left after this.

Index: Src/Zle/complist.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/complist.c,v
retrieving revision 1.102
diff -u -r1.102 complist.c
--- Src/Zle/complist.c	2 Apr 2007 13:58:19 -0000	1.102
+++ Src/Zle/complist.c	17 Apr 2007 14:04:08 -0000
@@ -1046,13 +1046,11 @@
 			tcout(TCUNDERLINEEND);
 		    break;
 		case ZWC('{'):
-		    for (p++; *p && (*p != '%' || p[1] != '}'); p++)
+		    for (; *p && (*p != '%' || p[1] != '}'); p++)
 			if (dopr)
 			    putc(*p == Meta ? *++p ^ 32 : *p, shout);
 		    if (*p)
-			p++;
-		    else
-			p--;
+			p += 2;
 		    break;
 		case ZWC('m'):
 		    if (stat) {


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

To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview



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