From 4fb4f4cd7afc55571df2ffa6c07af060ec8d173d Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Mon, 17 Sep 2001 18:30:49 +0000 Subject: Fixed doisearch() to not switch lines unless zlereadflags has ZLRF_HISTORY set. --- Src/Zle/zle_hist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Src/Zle/zle_hist.c') diff --git a/Src/Zle/zle_hist.c b/Src/Zle/zle_hist.c index d7223316c..2b0f582ba 100644 --- a/Src/Zle/zle_hist.c +++ b/Src/Zle/zle_hist.c @@ -720,7 +720,8 @@ doisearch(char **args, int dir) 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--; -- cgit 1.4.1