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:
Nathan Sobo 2022-04-19 10:12:42 -06:00
parent 360b876f36
commit 93d307aecb

View file

@ -207,7 +207,7 @@ impl PickerDelegate for OutlineView {
.unwrap_or(0); .unwrap_or(0);
} }
self.last_query = query; 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(()) Task::ready(())
} }