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:
Fabian Boehm 2024-11-14 19:58:23 +01:00
parent 4061ef7137
commit 366c1b7210

View file

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