aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/commands.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-09-13 14:12:14 +0000
committerBlaž Hrastnik2020-09-13 14:12:14 +0000
commit0427acd18cc06adec49783818107d1d5e2afc2ab (patch)
tree575a8d89d7805c4fae2c8c71310130bcbe08fbf1 /helix-core/src/commands.rs
parent2027f69eae5a8b7d25a4613dfddc382f01bcdb78 (diff)
Avoid collect() by accepting iterators into Transaction::change.
Diffstat (limited to 'helix-core/src/commands.rs')
-rw-r--r--helix-core/src/commands.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-core/src/commands.rs b/helix-core/src/commands.rs
index 3bebd7b4..8dc817da 100644
--- a/helix-core/src/commands.rs
+++ b/helix-core/src/commands.rs
@@ -155,7 +155,7 @@ pub fn open_below(state: &mut State, _count: usize) {
0,
);
- let transaction = Transaction::change(state, changes.collect()).with_selection(selection);
+ let transaction = Transaction::change(state, changes).with_selection(selection);
transaction.apply(state);
// TODO: need to store into history if successful