aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/transaction.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-09-19 14:16:00 +0000
committerBlaž Hrastnik2020-09-19 14:16:00 +0000
commit48330ddb5f36a1c5f44a636525089a019ce4439d (patch)
tree08f845b11f332757120a64f17b48e3222797df5a /helix-core/src/transaction.rs
parent1303ffd94ab4fcedc2d1b63107e4ccf6c07d3465 (diff)
Command needs access to view information for certain changes.
Diffstat (limited to 'helix-core/src/transaction.rs')
-rw-r--r--helix-core/src/transaction.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-core/src/transaction.rs b/helix-core/src/transaction.rs
index f6fbddf8..127cdaee 100644
--- a/helix-core/src/transaction.rs
+++ b/helix-core/src/transaction.rs
@@ -1,4 +1,4 @@
-use crate::{Rope, Selection, SelectionRange, State, Tendril};
+use crate::{Range, Rope, Selection, State, Tendril};
/// (from, to, replacement)
pub type Change = (usize, usize, Option<Tendril>);
@@ -387,7 +387,7 @@ impl Transaction {
/// Generate a transaction with a change per selection range.
pub fn change_by_selection<F>(state: &State, f: F) -> Self
where
- F: Fn(&SelectionRange) -> Change,
+ F: Fn(&Range) -> Change,
{
Self::change(state, state.selection.ranges().iter().map(f))
}