diff --git a/helix-term/src/ui/completion.rs b/helix-term/src/ui/completion.rs index 1ebcd192..c7f9250d 100644 --- a/helix-term/src/ui/completion.rs +++ b/helix-term/src/ui/completion.rs @@ -292,6 +292,8 @@ impl Completion { }; // if more text was entered, remove it doc.restore(view, &savepoint, true); + // save an undo checkpoint before the completion + doc.append_changes_to_history(view); let transaction = item_to_transaction( doc, view.id,