From 742b3a709fd7680d77bcda5ae08f2a9539b6a20e Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Mon, 29 Mar 2021 16:32:42 +0900 Subject: Store intra-files jumps (goto) on the jumplist. --- helix-core/src/selection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helix-core/src') diff --git a/helix-core/src/selection.rs b/helix-core/src/selection.rs index e76e12b4..c8109297 100644 --- a/helix-core/src/selection.rs +++ b/helix-core/src/selection.rs @@ -127,7 +127,7 @@ impl Range { /// A selection consists of one or more selection ranges. /// invariant: A selection can never be empty (always contains at least primary range). -#[derive(Debug, Clone)] +#[derive(Debug, Clone, PartialEq, Eq)] pub struct Selection { ranges: SmallVec<[Range; 1]>, primary_index: usize, -- cgit v1.2.3-70-g09d2