From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15114 invoked from network); 17 Sep 2001 18:24:51 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 17 Sep 2001 18:24:51 -0000 Received: (qmail 1276 invoked by alias); 17 Sep 2001 18:24:43 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15837 Received: (qmail 1265 invoked from network); 17 Sep 2001 18:24:42 -0000 Date: Mon, 17 Sep 2001 11:24:15 -0700 (PDT) From: Wayne Davison X-X-Sender: To: Bart Schaefer Cc: Subject: Re: History and vared In-Reply-To: <1010915184542.ZM1927@candle.brasslantern.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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---