fix for crash when progress bars had a size of zero
Created by: chrispine
If a progress bar was created with a size of zero (bar.Max
was 0), then src-cli would crash in rendering. (This could happen if some engineering manager didn't know what they were doing when using campaigns and tried to create one with no repos found, for example.)
Instead, we just draw a zero-width bar if bar.Max
is zero.