WIP - Navigate to prev/next search result

This commit is contained in:
Max Brunsfeld
2022-01-28 14:00:00 -08:00
parent 7e02d669e1
commit 5c7cea5a3e
3 changed files with 127 additions and 18 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ impl ItemView for Editor {
}
fn deactivated(&mut self, cx: &mut ViewContext<Self>) {
if let Some(selection) = self.newest_selection_internal() {
if let Some(selection) = self.newest_anchor_selection() {
self.push_to_nav_history(selection.head(), None, cx);
}
}