Closed cvijdea-bd closed 1 year ago
Thanks for reporting, would you be able to submit a PR?
I would but I have no clue what the fix should be. My first idea is to just slap an if width == 0 { return Ok(()); }
after https://github.com/console-rs/indicatif/blob/a7456f65b679f2f286e6c62f10458a080bc12506/src/multi.rs#L261-L270,
but I don't know the code well enough to tell if that would skip any important cleanup or otherwise relevant stuff
Describe the bug It seems that indicatif::multi::MultiState::draw panic with overflow in debug mode, at line 301 line_count is usize::MAX because width is 0.
To Reproduce
Expected behavior No crash
Additional context Using latest commit a7456f6 from git master.