mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 13:24:19 +00:00
Navigate to best match when updating outline view query
Co-Authored-By: Antonio Scandurra <me@as-cii.com> Co-Authored-By: Keith Simmons <keith@the-simmons.net> Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
parent
360b876f36
commit
93d307aecb
1 changed files with 1 additions and 1 deletions
|
@ -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(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue