zsh-workers
 help / color / mirror / code / Atom feed
From: Wayne Davison <wayned@users.sourceforge.net>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: <zsh-workers@sunsite.dk>
Subject: Re: History and vared
Date: Mon, 17 Sep 2001 11:24:15 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.33L2.0109171120200.20148-100000@phong.blorf.net> (raw)
In-Reply-To: <1010915184542.ZM1927@candle.brasslantern.com>

On Sat, 15 Sep 2001, Bart Schaefer wrote:
> On Aug 14, I wrote:
> } (no -h argument to vared), history-incremental-search-backward is able
> } to run off into the history if it doesn't find the search string in the
> } current buffer.

Thanks for the reminder -- I must have missed that comment the first
time around.  Here's the fix.

..wayne..

---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
Index: Src/Zle/zle_hist.c
--- Src/Zle/zle_hist.c	2001/09/03 01:39:20	1.5
+++ Src/Zle/zle_hist.c	2001/09/17 18:06:25
@@ -720,7 +720,8 @@
 		    statusline = ibuf + NORM_PROMPT_POS;
 		    break;
 		}
-		if (!(he = movehistent(he, dir, hist_skip_flags))) {
+		if (!(zlereadflags & ZLRF_HISTORY)
+		 || !(he = movehistent(he, dir, hist_skip_flags))) {
 		    if (sbptr == (int)isrch_spots[top_spot-1].len
 		     && (isrch_spots[top_spot-1].flags & ISS_FAILING))
 			top_spot--;
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---


      reply	other threads:[~2001-09-17 18:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-14  7:30 Various vared problems with screen refresh, etc Bart Schaefer
2001-08-14  8:28 ` Geoff Wing
2001-08-14 11:55   ` PATCH: Status line fixes (Was: Various vared problems with screen refresh, etc.) Geoff Wing
2001-09-15 18:43 ` Various vared problems with screen refresh, etc Bart Schaefer
2001-09-15 20:40   ` PATCH: ZLE doc xref to BAUD, fix doc build error Bart Schaefer
2001-09-15 23:21   ` Various vared problems with screen refresh, etc Peter Stephenson
2001-09-16  4:25     ` Bart Schaefer
2001-09-15 18:45 ` History and vared Bart Schaefer
2001-09-17 18:24   ` Wayne Davison [this message]

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=Pine.LNX.4.33L2.0109171120200.20148-100000@phong.blorf.net \
    --to=wayned@users.sourceforge.net \
    --cc=schaefer@brasslantern.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).