From 0427acd18cc06adec49783818107d1d5e2afc2ab Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Sun, 13 Sep 2020 23:12:14 +0900 Subject: Avoid collect() by accepting iterators into Transaction::change. --- helix-core/src/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helix-core/src/commands.rs') 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 -- cgit v1.2.3-70-g09d2