Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix line indices when using a selection in the context (#33549)
Alejandro Fernández Gómezf338c46bf79f
diff --git a/crates/agent_ui/src/context_picker.rs b/crates/agent_ui/src/context_picker.rsindex b0069a2446b..f303f34a528 100644--- a/crates/agent_ui/src/context_picker.rs+++ b/crates/agent_ui/src/context_picker.rs@@ -930,8 +930,8 @@ impl MentionLink {format!("[@{} ({}-{})]({}:{}:{}-{})",file_name,- line_range.start,- line_range.end,+ line_range.start + 1,+ line_range.end + 1,Self::SELECTION,full_path,line_range.start,