diff options
author | Joe Wilm <joe@jwilm.com> | 2017-05-06 17:37:01 -0700 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2017-05-06 17:37:01 -0700 |
commit | cbabef36edd39e179391685bc9368d92df1d5a01 (patch) | |
tree | ad0968c0b877be5bdc7911adcb85fe1261953654 | |
parent | 1d949d72d4dcf3b569c85ebdbc7b252dcf8b9a2e (diff) | |
download | alacritty-cbabef36edd39e179391685bc9368d92df1d5a01.tar.gz alacritty-cbabef36edd39e179391685bc9368d92df1d5a01.zip |
Fix bug in SizeInfo::contains_point
Accidentally broke it when refactoring.
-rw-r--r-- | src/term/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs index e7352ae7..9f49ae55 100644 --- a/src/term/mod.rs +++ b/src/term/mod.rs @@ -571,9 +571,9 @@ impl SizeInfo { } fn contains_point(&self, x: usize, y:usize) -> bool { - x <= (self.width - self.padding_x) as usize || - x >= self.padding_x as usize || - y <= (self.height - self.padding_y) as usize || + x <= (self.width - self.padding_x) as usize && + x >= self.padding_x as usize && + y <= (self.height - self.padding_y) as usize && y >= self.padding_y as usize } |