Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: tab-completion crash
- X-seq: zsh-workers 22713
- From: Peter Stephenson <pws@xxxxxxx>
- To: Zsh-workers <zsh-workers@xxxxxxxxxx>
- Subject: Re: tab-completion crash
- Date: Fri, 15 Sep 2006 16:23:02 +0100
- In-reply-to: <20060915145250.GA9905@fargo>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20060915145250.GA9905@fargo>
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