mirror of
https://github.com/ClementTsang/bottom
synced 2025-02-17 05:38:27 +00:00
Fix by doublechecking the remaining width calculation. (#67)
This commit is contained in:
parent
3a57570031
commit
f2b5f96d80
1 changed files with 1 additions and 2 deletions
|
@ -1658,8 +1658,7 @@ impl Painter {
|
|||
let margin_space = 2;
|
||||
let remaining_width = max(
|
||||
0,
|
||||
draw_loc.width as i64
|
||||
- ((9 + margin_space) * REQUIRED_COLUMNS - margin_space) as i64,
|
||||
draw_loc.width as i64 - ((9 + margin_space) * REQUIRED_COLUMNS) as i64,
|
||||
) as usize;
|
||||
|
||||
let bar_length = remaining_width / REQUIRED_COLUMNS;
|
||||
|
|
Loading…
Add table
Reference in a new issue