Skip to content

Commit bd7287b

Browse files
committed
fixup! switch to asynchronus diffing with similar
1 parent a8433ab commit bd7287b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

helix-view/src/document.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -768,12 +768,12 @@ impl Document {
768768

769769
if !transaction.changes().is_empty() {
770770
self.version += 1;
771-
let reverted_tx = transaction.invert(&old_doc);
772771

773772
// generate revert to savepoint
774773
if self.savepoint.is_some() {
775774
take_with(&mut self.savepoint, |prev_revert| {
776-
Some(reverted_tx.compose(prev_revert.unwrap()))
775+
let revert = transaction.invert(&old_doc);
776+
Some(revert.compose(prev_revert.unwrap()))
777777
});
778778
}
779779

0 commit comments

Comments
 (0)