aboutsummaryrefslogtreecommitdiff
path: root/src/selection.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/selection.rs')
-rw-r--r--src/selection.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/selection.rs b/src/selection.rs
index ebc84bee..ff587b9d 100644
--- a/src/selection.rs
+++ b/src/selection.rs
@@ -19,9 +19,8 @@
//! when text is added/removed/scrolled on the screen. The selection should
//! also be cleared if the user clicks off of the selection.
use std::mem;
-use std::ops::RangeInclusive;
-use index::{Point, Column, Side, Linear, Line};
+use index::{Point, Column, RangeInclusive, Side, Linear, Line};
use grid::ToRange;
/// The area selected
@@ -248,7 +247,7 @@ impl ToRange for Span {
SpanType::ExcludeTail => (start, Span::exclude_end(end))
};
- start...end
+ RangeInclusive::new(start, end)
}
}