zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh-workers@sunsite.dk
Subject: Re: PATCH: isearch match highlighting
Date: Sun, 27 Apr 2008 20:57:59 +0100	[thread overview]
Message-ID: <200804271957.m3RJvxiS004075@pws-pc.ntlworld.com> (raw)
In-Reply-To: Message from "Matt Wozniski" <godlygeek@gmail.com> of "Sat, 26 Apr 2008 20:27:22 EDT." <17393e3e0804261727s560acff7sb6125d8f8b46b4b4@mail.gmail.com>

"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 <p.w.stephenson@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/


  parent reply	other threads:[~2008-04-27 19:59 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-26 22:48 Peter Stephenson
2008-04-27  0:27 ` Matt Wozniski
2008-04-27 16:48   ` Bart Schaefer
2008-04-27 19:57   ` Peter Stephenson [this message]
2008-04-28  1:49     ` Matt Wozniski
2008-04-28  9:20       ` Peter Stephenson
2008-04-28 10:50         ` Matt Wozniski
2008-04-28 11:02           ` Peter Stephenson
2008-04-29 17:10         ` Peter Stephenson
2008-04-29 20:12           ` Matt Wozniski
2008-04-29 20:21             ` Matt Wozniski
2008-05-01 10:37           ` Peter Stephenson
2008-05-02 10:49             ` Nikolai Weibull
2008-05-02 11:14               ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200804271957.m3RJvxiS004075@pws-pc.ntlworld.com \
    --to=p.w.stephenson@ntlworld.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).