diff --git a/crates/editor/src/items.rs b/crates/editor/src/items.rs index 4993ff689507ebc4478d4a92164360dd6e734a9e..ec3590dba217677bbaf2c8aa36bfd3147b9d6cbf 100644 --- a/crates/editor/src/items.rs +++ b/crates/editor/src/items.rs @@ -1521,7 +1521,7 @@ impl SearchableItem for Editor { fn query_suggestion(&mut self, window: &mut Window, cx: &mut Context) -> String { let setting = EditorSettings::get_global(cx).seed_search_query_from_cursor; let snapshot = &self.snapshot(window, cx).buffer_snapshot; - let selection = self.selections.newest::(cx); + let selection = self.selections.newest_adjusted(cx); match setting { SeedQuerySetting::Never => String::new(),