From f29f01858d1b8c9e54b3293879796a4650823f60 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Fri, 19 Mar 2021 11:14:13 +0900 Subject: Implement iter() and len() directly on Selection. --- helix-core/src/transaction.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helix-core/src/transaction.rs') diff --git a/helix-core/src/transaction.rs b/helix-core/src/transaction.rs index 2bd100e8..1f9e63aa 100644 --- a/helix-core/src/transaction.rs +++ b/helix-core/src/transaction.rs @@ -494,7 +494,7 @@ impl Transaction { where F: FnMut(&Range) -> Change, { - Self::change(doc, selection.ranges().iter().map(f)) + Self::change(doc, selection.iter().map(f)) } /// Insert text at each selection head. -- cgit v1.2.3-70-g09d2