* tab-completion crash
@ 2006-09-15 14:52 David Gómez
2006-09-15 15:23 ` Peter Stephenson
0 siblings, 1 reply; 2+ messages in thread
From: David Gómez @ 2006-09-15 14:52 UTC (permalink / raw)
To: Zsh-workers
Hi all,
Latest zsh CVS gives me this crash (with the old
completion, i'm not using zstyle at all):
% [<Tab>
That is, typing a square bracket and hitting Tab make
zsh crash. If you're not able to reproduce this i can
compile zsh with debug info to generate a backtrace.
cheers,
--
David Gómez Jabber ID: davidge@jabber.org
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: tab-completion crash
2006-09-15 14:52 tab-completion crash David Gómez
@ 2006-09-15 15:23 ` Peter Stephenson
0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2006-09-15 15:23 UTC (permalink / raw)
To: Zsh-workers
David =?utf-8?B?R8OzbWV6?= <david@pleyades.net> 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@csr.com> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-09-15 15:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-15 14:52 tab-completion crash David Gómez
2006-09-15 15:23 ` Peter Stephenson
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).