aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src
diff options
context:
space:
mode:
authorMichael Davis2022-11-27 18:47:51 +0000
committerBlaž Hrastnik2022-11-29 16:15:20 +0000
commit53c28556436ffcf8ad5a68c40b53d9aa11669510 (patch)
treeb1d2aee427c2bc8c19cdae9312dd29b02b1ad93f /helix-view/src
parent056a19a003a290b7914c7b442ebd640b93eaba0c (diff)
Remove calls to View::apply in undo/redo/earlier/later
Diffstat (limited to 'helix-view/src')
-rw-r--r--helix-view/src/document.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs
index 08708528..4b264b13 100644
--- a/helix-view/src/document.rs
+++ b/helix-view/src/document.rs
@@ -861,7 +861,7 @@ impl Document {
let mut history = self.history.take();
let txn = if undo { history.undo() } else { history.redo() };
let success = if let Some(txn) = txn {
- self.apply_impl(txn, view.id) && view.apply(txn, self)
+ self.apply_impl(txn, view.id)
} else {
false
};
@@ -902,7 +902,7 @@ impl Document {
};
let mut success = false;
for txn in txns {
- if self.apply_impl(&txn, view.id) && view.apply(&txn, self) {
+ if self.apply_impl(&txn, view.id) {
success = true;
}
}