Added -1 back when determining term_width (#2646)

* Added -1 back

* retrigger checks

* removed the max

* fixed a mistake
This commit is contained in:
Darren Schroeder 2020-10-07 12:45:57 -05:00 committed by GitHub
parent ff236da72c
commit 153320ef33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,7 +126,8 @@ impl Host for BasicHost {
} }
fn width(&self) -> usize { fn width(&self) -> usize {
let (term_width, _) = term_size::dimensions().unwrap_or_else(|| (80, 20)); let (mut term_width, _) = term_size::dimensions().unwrap_or_else(|| (80, 20));
term_width -= 1;
term_width term_width
} }
} }