Skip to content

Commit

Permalink
Navigate to best match when updating outline view query
Browse files Browse the repository at this point in the history
Co-Authored-By: Antonio Scandurra <[email protected]>
Co-Authored-By: Keith Simmons <[email protected]>
Co-Authored-By: Max Brunsfeld <[email protected]>
  • Loading branch information
4 people committed Apr 19, 2022
1 parent 360b876 commit 93d307a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/outline/src/outline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ impl PickerDelegate for OutlineView {
.unwrap_or(0);
}
self.last_query = query;
self.set_selected_index(selected_index, false, cx);
self.set_selected_index(selected_index, !self.last_query.is_empty(), cx);
Task::ready(())
}

Expand Down

0 comments on commit 93d307a

Please sign in to comment.