mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
Refuse to search history pager if no new results exist
This prevents searching further and collapsing results into one. Now I need to figure out how to get it to flash.
This commit is contained in:
parent
4061ef7137
commit
366c1b7210
1 changed files with 1 additions and 1 deletions
|
@ -4717,7 +4717,7 @@ impl ReaderData {
|
||||||
match direction {
|
match direction {
|
||||||
SearchDirection::Forward => {
|
SearchDirection::Forward => {
|
||||||
history_pager.can_go_backwards = true;
|
history_pager.can_go_backwards = true;
|
||||||
if index == 0 {
|
if index == 0 || index <= result.final_index {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
history_pager.history_index_start = result.final_index;
|
history_pager.history_index_start = result.final_index;
|
||||||
|
|
Loading…
Reference in a new issue