From 059e7424c18d9828c1a5d59f63e8ded8b4e53b93 Mon Sep 17 00:00:00 2001 From: kerty Date: Sat, 11 Jan 2025 21:07:33 +0300 Subject: [PATCH] Fix refreshing from deletion after forward search --- src/reader.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/reader.rs b/src/reader.rs index f9c792a74..00162af8d 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -5179,9 +5179,9 @@ fn fill_history_pager( } } HistoryPagerInvocation::Refresh => { - // Redo the previous search previous direction. + // Make backward search from current position let history_pager = self.history_pager.as_ref().unwrap(); - direction = history_pager.direction; + direction = SearchDirection::Backward; index = history_pager.history_index_start; old_pager_index = Some(self.pager.selected_completion_index()); }