diff options
author | Joe Wilm <joe@jwilm.com> | 2017-06-16 12:56:55 -0700 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-06-19 21:31:50 -0700 |
commit | 6b081dcc95f08ac61e7f29033bbf0394ccff3472 (patch) | |
tree | 8041293a6915d03ba15fa6f74f20a5c70ebaebc9 /src/selection.rs | |
parent | 63bcb4601198790ccdb96ffec4a360ce3080e685 (diff) | |
download | alacritty-6b081dcc95f08ac61e7f29033bbf0394ccff3472.tar.gz alacritty-6b081dcc95f08ac61e7f29033bbf0394ccff3472.zip |
Fix unnecessary redraws with active selection
Could be cleaned up a bit if there was a wrapper for Option<Selection>
that contained this flag.
Also fixes a few compiler warnings.
Diffstat (limited to 'src/selection.rs')
-rw-r--r-- | src/selection.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/selection.rs b/src/selection.rs index 868ded7b..a81a9fe6 100644 --- a/src/selection.rs +++ b/src/selection.rs @@ -18,13 +18,10 @@ //! finalized when the button is released. The selection should be cleared //! 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::cmp::min; -use std::cmp::max; +use std::cmp::{min, max}; use index::{Point, Column, RangeInclusive, Side, Linear, Line}; -use grid::{Grid, ToRange}; -use term::Cell; +use grid::ToRange; /// Describes a region of a 2-dimensional area /// |