diff options
author | Wayne Davison <wayned@users.sourceforge.net> | 2001-09-17 18:30:49 +0000 |
---|---|---|
committer | Wayne Davison <wayned@users.sourceforge.net> | 2001-09-17 18:30:49 +0000 |
commit | 4fb4f4cd7afc55571df2ffa6c07af060ec8d173d (patch) | |
tree | 7c5447b4f819a31c3a8300ce88b3f478a43ce552 /Src/Zle/zle_hist.c | |
parent | 63708beb77387c546804e1ab3cc9e4dd007f4a6f (diff) | |
download | zsh-4fb4f4cd7afc55571df2ffa6c07af060ec8d173d.tar.gz zsh-4fb4f4cd7afc55571df2ffa6c07af060ec8d173d.tar.xz zsh-4fb4f4cd7afc55571df2ffa6c07af060ec8d173d.zip |
Fixed doisearch() to not switch lines unless zlereadflags has
ZLRF_HISTORY set.
Diffstat (limited to 'Src/Zle/zle_hist.c')
-rw-r--r-- | Src/Zle/zle_hist.c | 3 |
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--; |