on master help sign in
Remove calls to View::apply in undo/redo/earlier/later
commit53c28556436ffcf8ad5a68c40b53d9aa11669510 authorMichael Davis <mcarsondavis@gmail.com> dateSun 27 Nov 2022, 12:47 (4 years ago) parent056a19a
1 file changed+2−2
helix-view/src/document.rs+2−2
helix-view/src/document.rs+2−2
@@ -861,7 +861,7 @@ impl Document {
861861 let mut history = self.history.take();
862862 let txn = if undo { history.undo() } else { history.redo() };
863863 let success = if let Some(txn) = txn {
864− self.apply_impl(txn, view.id) && view.apply(txn, self)
864+ self.apply_impl(txn, view.id)
865865 } else {
866866 false
867867 };
@@ -902,7 +902,7 @@ impl Document {
902902 };
903903 let mut success = false;
904904 for txn in txns {
905− if self.apply_impl(&txn, view.id) && view.apply(&txn, self) {
905+ if self.apply_impl(&txn, view.id) {
906906 success = true;
907907 }
908908 }