Merge #138
138: On my laptop, the terminal separator line has been off by one every time. r=r-darwish a=jasikpark Changing `.checked_sub(3)` to `.checked_sub(4)` prevents the line separator from overflowing on my screen. ### Original <img width="682" alt="Screenshot 2019-03-15 19 24 55" src="https://user-images.githubusercontent.com/10626596/54468481-f126ee80-475a-11e9-8f11-8f720fd6bfa2.png"> ### New <img width="682" alt="Screenshot 2019-03-15 19 24 58" src="https://user-images.githubusercontent.com/10626596/54468483-fa17c000-475a-11e9-9771-c87fb8fcfea6.png"> Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>
This commit is contained in:
@@ -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)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user