mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
Use the cursor variable instead of selection.start
This commit is contained in:
parent
dd416cdfd2
commit
03a4c9d6d5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user