Subject: | A long track name or comment can trigger a "Negative repeat count" warning in _interpolate() |
If a long track name or comment is present, that is longer than $minwidth, it will cause a warning about "Negative repeat count". This can be prevented by changing the repeat calculation from:
($minwidth - length $str)
to
max(0, $minwidth - length $str)
List::Util has been in core since v5.7.3, but if you want to avoid it, you can use something like:
((sort 0, ($minwidth - length $str))[-1])