on master help sign in
Remove calls to View::apply in undo/redo/earlier/later
53c2855Michael Davis
helix-view/src/document.rs+2−2
@@ -861,7 +861,7 @@ impl Document {
861 let mut history = self.history.take();
861 let mut history = self.history.take();
862 let txn = if undo { history.undo() } else { history.redo() };
862 let txn = if undo { history.undo() } else { history.redo() };
863 let success = if let Some(txn) = txn {
863 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)
865 } else {
865 } else {
866 false
866 false
867 };
867 };
@@ -902,7 +902,7 @@ impl Document {
902 };
902 };
903 let mut success = false;
903 let mut success = false;
904 for txn in txns {
904 for txn in txns {
905− if self.apply_impl(&txn, view.id) && view.apply(&txn, self) {
905+ if self.apply_impl(&txn, view.id) {
906 success = true;
906 success = true;
907 }
907 }
908 }
908 }