mirror of https://github.com/helix-editor/helix
Save an undo checkpoint before accepting completion (#7747)
parent
dea6894f92
commit
6a431afc4e
|
@ -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…
Reference in New Issue