aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/selection.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-core/src/selection.rs')
-rw-r--r--helix-core/src/selection.rs2
1 files changed, 1 insertions, 1 deletions
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,