summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2017-05-06 17:37:01 -0700
committerJoe Wilm <joe@jwilm.com>2017-05-06 17:37:01 -0700
commitcbabef36edd39e179391685bc9368d92df1d5a01 (patch)
treead0968c0b877be5bdc7911adcb85fe1261953654 /src
parent1d949d72d4dcf3b569c85ebdbc7b252dcf8b9a2e (diff)
Fix bug in SizeInfo::contains_point
Accidentally broke it when refactoring.
Diffstat (limited to 'src')
-rw-r--r--src/term/mod.rs6
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
}