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

Re: tab-completion crash

David =?utf-8?B?R8OzbWV6?= <david@xxxxxxxxxxxx> wrote:
>Latest zsh CVS gives me this crash (with the old
>completion, i'm not using zstyle at all):
>% [<Tab>

Thanks, that's a bug I introduced in math context (which it isn't
really, but compctl is thick) when trying to get the words working with
multibyte characters.

Index: Src/Zle/zle_tricky.c
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_tricky.c,v
retrieving revision 1.75
diff -u -r1.75 zle_tricky.c
--- Src/Zle/zle_tricky.c	20 Aug 2006 22:28:17 -0000	1.75
+++ Src/Zle/zle_tricky.c	15 Sep 2006 15:20:24 -0000
@@ -1426,7 +1426,7 @@
 	     * (even if they don't have a `$' in front of them).  So we *
 	     * have to find that name.                                  */
 	    char *cspos = zlemetaline + zlemetacs, *wptr, *cptr;
-	    we = itype_end(cspos, IIDENT, 0) - cspos;
+	    we = itype_end(cspos, IIDENT, 0) - zlemetaline;
 	     * With multibyte characters we need to go forwards,

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