From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22800 invoked from network); 18 Apr 2008 11:32:46 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 18 Apr 2008 11:32:46 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 1060 invoked from network); 18 Apr 2008 11:32:43 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 Apr 2008 11:32:43 -0000 Received: (qmail 12012 invoked by alias); 18 Apr 2008 11:32:41 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24839 Received: (qmail 11999 invoked from network); 18 Apr 2008 11:32:40 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 18 Apr 2008 11:32:40 -0000 Received: from cluster-g.mailcontrol.com (cluster-g.mailcontrol.com [85.115.41.190]) by bifrost.dotsrc.org (Postfix) with ESMTP id 843978043AC7 for ; Fri, 18 Apr 2008 13:32:33 +0200 (CEST) Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly07g.srv.mailcontrol.com (MailControl) with ESMTP id m3IBWNW7005194 for ; Fri, 18 Apr 2008 12:32:28 +0100 Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.3959); Fri, 18 Apr 2008 12:32:21 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.14.2/8.13.4) with ESMTP id m3IBWL2l015668 for ; Fri, 18 Apr 2008 12:32:21 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.14.2/8.14.2/Submit) with ESMTP id m3IBWLsE015665 for ; Fri, 18 Apr 2008 12:32:21 +0100 Message-Id: <200804181132.m3IBWLsE015665@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: "Zsh hackers list" Subject: Re: PATCH: fix the word boundary stuff In-reply-to: <237967ef0804180419y54de9792x77686575f66ff679@mail.gmail.com> References: <2634.1208434104@csr.com> <237967ef0804180419y54de9792x77686575f66ff679@mail.gmail.com> Comments: In-reply-to "Mikael Magnusson" message dated "Fri, 18 Apr 2008 13:19:32 +0200." Date: Fri, 18 Apr 2008 12:32:20 +0100 From: Peter Stephenson X-OriginalArrivalTime: 18 Apr 2008 11:32:21.0609 (UTC) FILETIME=[DDCE3D90:01C8A147] X-Scanned-By: MailControl A-08-00-05 (www.mailcontrol.com) on 10.71.0.117 X-Virus-Scanned: ClamAV 0.91.2/6819/Fri Apr 18 12:37:17 2008 on bifrost X-Virus-Status: Clean "Mikael Magnusson" wrote: > This patch broke _backward-delete-to-/ for me. It was posted here some > time back, here's the file I use: http://mika.l3ib.org/s/dot-delete-to > > Without the patch, on the commandline > foo bar/baz\ blarg > when i press ctrl-w i first get "foo bar/" and then "foo ", with the > patch i get "foo bar/baz\", "foo bar" and "foo". That's likely to be this. I scanned for similar problems but didn't see any. Index: Src/Zle/zle_word.c =================================================================== RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_word.c,v retrieving revision 1.11 diff -u -r1.11 zle_word.c --- Src/Zle/zle_word.c 17 Apr 2008 12:52:17 -0000 1.11 +++ Src/Zle/zle_word.c 18 Apr 2008 11:30:08 -0000 @@ -464,14 +464,14 @@ while (x) { int pos = x; DECPOS(pos); - if (ZC_iword(zleline[x])) + if (ZC_iword(zleline[pos])) break; x = pos; } while (x) { int pos = x; DECPOS(pos); - if (!ZC_iword(zleline[x])) + if (!ZC_iword(zleline[pos])) break; x = pos; } -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070