Allow redoing edits performed by inline assistant after cancelling it
This commit is contained in:
parent
b9df85e01f
commit
52e1e014ad
4 changed files with 42 additions and 17 deletions
|
@ -442,7 +442,7 @@ impl AssistantPanel {
|
|||
if let Some(transaction_id) = pending_assist.transaction_id {
|
||||
editor.update(cx, |editor, cx| {
|
||||
editor.buffer().update(cx, |buffer, cx| {
|
||||
buffer.undo_and_forget(transaction_id, cx)
|
||||
buffer.undo_transaction(transaction_id, cx)
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue