From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6734 invoked from network); 27 Apr 2008 19:59:04 -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.5 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; 27 Apr 2008 19:59:04 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 13903 invoked from network); 27 Apr 2008 19:58:55 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 27 Apr 2008 19:58:55 -0000 Received: (qmail 12346 invoked by alias); 27 Apr 2008 19:58:51 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24886 Received: (qmail 12324 invoked from network); 27 Apr 2008 19:58:50 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 27 Apr 2008 19:58:50 -0000 Received: from mtaout01-winn.ispmail.ntl.com (mtaout01-winn.ispmail.ntl.com [81.103.221.47]) by bifrost.dotsrc.org (Postfix) with ESMTP id 30C0F808A38A for ; Sun, 27 Apr 2008 21:58:44 +0200 (CEST) Received: from aamtaout02-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com with ESMTP id <20080427200159.SSYR27050.mtaout01-winn.ispmail.ntl.com@aamtaout02-winn.ispmail.ntl.com> for ; Sun, 27 Apr 2008 21:01:59 +0100 Received: from pws-pc.ntlworld.com ([81.107.40.67]) by aamtaout02-winn.ispmail.ntl.com with ESMTP id <20080427200107.RKGB17393.aamtaout02-winn.ispmail.ntl.com@pws-pc.ntlworld.com> for ; Sun, 27 Apr 2008 21:01:07 +0100 Received: from pws-pc (pws-pc [127.0.0.1]) by pws-pc.ntlworld.com (8.14.2/8.14.2) with ESMTP id m3RJvxiS004075 for ; Sun, 27 Apr 2008 20:57:59 +0100 Message-Id: <200804271957.m3RJvxiS004075@pws-pc.ntlworld.com> From: Peter Stephenson To: zsh-workers@sunsite.dk Subject: Re: PATCH: isearch match highlighting In-Reply-To: Message from "Matt Wozniski" of "Sat, 26 Apr 2008 20:27:22 EDT." <17393e3e0804261727s560acff7sb6125d8f8b46b4b4@mail.gmail.com> Date: Sun, 27 Apr 2008 20:57:59 +0100 X-Virus-Scanned: ClamAV 0.91.2/6971/Sun Apr 27 20:42:33 2008 on bifrost X-Virus-Status: Clean "Matt Wozniski" wrote: > zsh -f > bindkey -e > ^Rb > and the shell goes into a tight loop, using 100% of one of my cores, > and won't die to anything less than a kill -9. Oops. pos wasn't yet updated. Index: Src/Zle/zle_hist.c =================================================================== RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_hist.c,v retrieving revision 1.49 diff -u -r1.49 zle_hist.c --- Src/Zle/zle_hist.c 26 Apr 2008 22:52:51 -0000 1.49 +++ Src/Zle/zle_hist.c 27 Apr 2008 19:57:27 -0000 @@ -1323,7 +1323,7 @@ } else t = zlinefind(zt, pos, sbuf, dir, sens); if (t) - end_pos = pos + sbptr - (sbuf[0] == '^'); + end_pos = (t - zt) + sbptr - (sbuf[0] == '^'); } } if (t) { -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/