diff --git a/helix-core/src/selection.rs b/helix-core/src/selection.rs index c8109297..064abec7 100644 --- a/helix-core/src/selection.rs +++ b/helix-core/src/selection.rs @@ -59,11 +59,11 @@ impl Range { #[must_use] pub fn overlaps(&self, other: &Self) -> bool { // cursor overlap is checked differently - if self.is_empty() { - self.from() <= other.to() - } else { - self.from() < other.to() - } + // if self.is_empty() { + // self.from() <= other.to() + // } else { + self.to() >= other.from() && other.to() >= self.from() + // } } pub fn contains(&self, pos: usize) -> bool {