diff options
author | Blaž Hrastnik | 2020-10-06 07:00:23 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2020-10-13 14:13:56 +0000 |
commit | 1dba0f2b1ccc0c6a29e05876b7b7153373221f87 (patch) | |
tree | 2114ae0a23fb379c57b7ad1de491fa8406cbaffe /helix-core/src/transaction.rs | |
parent | eba5b1ef3329bef35fe387b03bdf2f32cdb34761 (diff) |
Simple yank/paste registers.
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)) } |