1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-01 18:30:55 +01:00

Fixed doisearch() to not switch lines unless zlereadflags has

ZLRF_HISTORY set.
This commit is contained in:
Wayne Davison 2001-09-17 18:30:49 +00:00
parent 63708beb77
commit 4fb4f4cd7a

View file

@ -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--;