diff options
Diffstat (limited to 'helix-core/src/transaction.rs')
-rw-r--r-- | helix-core/src/transaction.rs | 4 |
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)) } |