Save an undo checkpoint before accepting completion (#7747)

pull/7764/head
Michael Davis 1 year ago committed by GitHub
parent dea6894f92
commit 6a431afc4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -292,6 +292,8 @@ impl Completion {
}; };
// if more text was entered, remove it // if more text was entered, remove it
doc.restore(view, &savepoint, true); doc.restore(view, &savepoint, true);
// save an undo checkpoint before the completion
doc.append_changes_to_history(view);
let transaction = item_to_transaction( let transaction = item_to_transaction(
doc, doc,
view.id, view.id,

Loading…
Cancel
Save