on master help sign in
Save an undo checkpoint before accepting completion (#7747)
6a431afMichael Davis
helix-term/src/ui/completion.rs+2
@@ -292,6 +292,8 @@ impl Completion {
292 };
292 };
293 // if more text was entered, remove it
293 // if more text was entered, remove it
294 doc.restore(view, &savepoint, true);
294 doc.restore(view, &savepoint, true);
295+ // save an undo checkpoint before the completion
296+ doc.append_changes_to_history(view);
295 let transaction = item_to_transaction(
297 let transaction = item_to_transaction(
296 doc,
298 doc,
297 view.id,
299 view.id,