Fix refreshing from deletion after forward search

This commit is contained in:
kerty
2025-01-11 21:07:33 +03:00
committed by Johannes Altmanninger
parent 6b5ad163d3
commit 059e7424c1

View File

@@ -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());
}