Avoid scrolling to the new cursor position so the assistant's output is stable
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
This commit is contained in:
parent
f52d3ea5ef
commit
83fc7b9b7c
1 changed files with 2 additions and 0 deletions
|
@ -1681,6 +1681,8 @@ impl ConversationEditor {
|
||||||
|selections| selections.select_ranges(new_selections),
|
|selections| selections.select_ranges(new_selections),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
// Avoid scrolling to the new cursor position so the assistant's output is stable.
|
||||||
|
cx.defer(|this, _| this.scroll_position = None);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue