diff options
Diffstat (limited to 'helix-core/src/transaction.rs')
-rw-r--r-- | helix-core/src/transaction.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-core/src/transaction.rs b/helix-core/src/transaction.rs index 13c0c50f..33612ecf 100644 --- a/helix-core/src/transaction.rs +++ b/helix-core/src/transaction.rs @@ -445,7 +445,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(&Range) -> Change, + F: FnMut(&Range) -> Change, { Self::change(state, state.selection.ranges().iter().map(f)) } |