From a924ad288560cff871a4e653e000396c78805252 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Fri, 5 Feb 2021 16:06:48 +0900 Subject: simplify. --- helix-core/src/selection.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'helix-core/src') diff --git a/helix-core/src/selection.rs b/helix-core/src/selection.rs index 55514864..121267bf 100644 --- a/helix-core/src/selection.rs +++ b/helix-core/src/selection.rs @@ -184,6 +184,7 @@ impl Selection { Self::single(pos, pos) } + // TODO: consume an iterator or a vec to reduce allocations? #[must_use] pub fn new(ranges: SmallVec<[Range; 1]>, primary_index: usize) -> Self { fn normalize(mut ranges: SmallVec<[Range; 1]>, mut primary_index: usize) -> Selection { -- cgit v1.2.3-70-g09d2