aboutsummaryrefslogtreecommitdiff
path: root/src/term/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/term/mod.rs')
-rw-r--r--src/term/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs
index 9981a3d1..4891e794 100644
--- a/src/term/mod.rs
+++ b/src/term/mod.rs
@@ -556,12 +556,12 @@ pub struct SizeInfo {
impl SizeInfo {
#[inline]
pub fn lines(&self) -> Line {
- Line((self.height / self.cell_height) as usize)
+ Line(((self.height - 4.0) / self.cell_height) as usize)
}
#[inline]
pub fn cols(&self) -> Column {
- Column((self.width / self.cell_width) as usize)
+ Column(((self.width - 4.0) / self.cell_width) as usize)
}
pub fn pixels_to_coords(&self, x: usize, y: usize) -> Option<Point> {