aboutsummaryrefslogtreecommitdiff
path: root/src/selection.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/selection.rs')
-rw-r--r--src/selection.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/selection.rs b/src/selection.rs
index ff587b9d..3e5b799c 100644
--- a/src/selection.rs
+++ b/src/selection.rs
@@ -106,14 +106,14 @@ impl Selection {
// Single-cell selections are a special case
if start == end {
- if start_side != end_side {
+ if start_side == end_side {
+ return None;
+ } else {
return Some(Span {
ty: SpanType::Inclusive,
front: *front,
tail: *tail
});
- } else {
- return None;
}
}