Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
vim: Grep in visual line (#33414)
5brianf9987a11419c
diff --git a/crates/editor/src/items.rs b/crates/editor/src/items.rsindex 4993ff68950..ec3590dba21 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<Self>) -> 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::<usize>(cx);+ let selection = self.selections.newest_adjusted(cx);match setting {SeedQuerySetting::Never => String::new(),