diff options
author | Blaž Hrastnik | 2021-03-19 02:14:13 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-03-19 02:14:13 +0000 |
commit | f29f01858d1b8c9e54b3293879796a4650823f60 (patch) | |
tree | 6aeb9434e110adcdbe533c0519d7dd0e2993c88b /helix-core/src/transaction.rs | |
parent | e9bd9e72c3adf822ae569644dd87f4a5e04df18e (diff) |
Implement iter() and len() directly on Selection.
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 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. |