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:
parent
63708beb77
commit
4fb4f4cd7a
1 changed files with 2 additions and 1 deletions
|
|
@ -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--;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue