mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-23 13:45:12 +02:00
Fix by doublechecking the remaining width calculation. (#67)
This commit is contained in:
parent
3a57570031
commit
f2b5f96d80
@ -1658,8 +1658,7 @@ impl Painter {
|
|||||||
let margin_space = 2;
|
let margin_space = 2;
|
||||||
let remaining_width = max(
|
let remaining_width = max(
|
||||||
0,
|
0,
|
||||||
draw_loc.width as i64
|
draw_loc.width as i64 - ((9 + margin_space) * REQUIRED_COLUMNS) as i64,
|
||||||
- ((9 + margin_space) * REQUIRED_COLUMNS - margin_space) as i64,
|
|
||||||
) as usize;
|
) as usize;
|
||||||
|
|
||||||
let bar_length = remaining_width / REQUIRED_COLUMNS;
|
let bar_length = remaining_width / REQUIRED_COLUMNS;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user