From 366c1b7210b608e3988a10e7feb82f8252604c8f Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Thu, 14 Nov 2024 19:58:23 +0100 Subject: [PATCH] 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. --- src/reader.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reader.rs b/src/reader.rs index 76513b933..6ff5d0a88 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -4717,7 +4717,7 @@ impl ReaderData { match direction { SearchDirection::Forward => { history_pager.can_go_backwards = true; - if index == 0 { + if index == 0 || index <= result.final_index { return; } history_pager.history_index_start = result.final_index;