summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2001-09-17 18:30:49 +0000
committerWayne Davison <wayned@users.sourceforge.net>2001-09-17 18:30:49 +0000
commit4fb4f4cd7afc55571df2ffa6c07af060ec8d173d (patch)
tree7c5447b4f819a31c3a8300ce88b3f478a43ce552 /Src/Zle
parent63708beb77387c546804e1ab3cc9e4dd007f4a6f (diff)
downloadzsh-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')
-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--;