Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Use the cursor variable instead of selection.start
Antonio Scandurra03a4c9d6d522
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rsindex b2232d8df27..f28c82407a9 100644--- a/crates/editor/src/editor.rs+++ b/crates/editor/src/editor.rs@@ -3282,7 +3282,7 @@ impl Editor {// Accept copilot suggestion if there is only one selection and the cursor is not// in the leading whitespace.if self.selections.count() == 1- && selection.start.column >= current_indent.len+ && cursor.column >= current_indent.len&& self.has_active_copilot_suggestion(cx){self.accept_copilot_suggestion(cx);