Allow redoing edits performed by inline assistant after cancelling it

This commit is contained in:
Antonio Scandurra 2023-08-28 14:42:41 +02:00
parent b9df85e01f
commit 52e1e014ad
4 changed files with 42 additions and 17 deletions

View file

@ -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)
});
});
}