summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Src/Zle/zle_hist.c3
1 files changed, 2 insertions, 1 deletions
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--;