Skip to content

Commit

Permalink
(7643) Save undo checkpoint at completion
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis committed Jul 20, 2023
1 parent a8d97bf commit d1b0335
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 d1b0335

Please sign in to comment.