diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2017-01-06 16:26:31 -0800 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2017-01-06 20:28:17 -0800 |
commit | fbeded8ac543613b89af2ed7fd856e978493cde4 (patch) | |
tree | 64d761480a43f6935aad4e0d9171674cc9c0c868 /src/selection.rs | |
parent | c579d079939b5d4ee3127579de732f037e612c28 (diff) | |
download | alacritty-fbeded8ac543613b89af2ed7fd856e978493cde4.tar.gz alacritty-fbeded8ac543613b89af2ed7fd856e978493cde4.zip |
Remove need for inclusive ranges
Diffstat (limited to 'src/selection.rs')
-rw-r--r-- | src/selection.rs | 5 |
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) } } |