Skip to content

Commit

Permalink
Save an undo checkpoint before accepting completion (#7747)
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis authored Jul 27, 2023
1 parent dea6894 commit 6a431af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helix-term/src/ui/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6a431af

Please sign in to comment.