on master help sign in
Save an undo checkpoint before accepting completion (#7747)
commit6a431afc4e650efd2eca4afdf1122b3896e43ee3 authorMichael Davis <mcarsondavis@gmail.com> dateWed 26 Jul 2023, 21:48 (3 years ago) parentdea6894
1 file changed+2
helix-term/src/ui/completion.rs+2
helix-term/src/ui/completion.rs+2
@@ -292,6 +292,8 @@ impl Completion {
292292 };
293293 // if more text was entered, remove it
294294 doc.restore(view, &savepoint, true);
295+ // save an undo checkpoint before the completion
296+ doc.append_changes_to_history(view);
295297 let transaction = item_to_transaction(
296298 doc,
297299 view.id,