Fix off-by-one error for formatting

This commit is contained in:
Caleb Jasik
2019-03-15 19:22:37 -05:00
parent 5f13b3d0b5
commit e8ea53b6c6

View File

@@ -36,7 +36,7 @@ impl Terminal {
border = max(
2,
min(80, width as usize)
.checked_sub(3)
.checked_sub(4)
.and_then(|e| e.checked_sub(message.len()))
.unwrap_or(0)
)