Skip to content

Commit

Permalink
Merge pull request #125 from rock-core/fix_line_wrapping_in_progress_…
Browse files Browse the repository at this point in the history
…display

fix: line wrapping in progress display
  • Loading branch information
g-arjones authored Aug 8, 2022
2 parents 10f5c0a + 37f6951 commit c5cd1aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/autobuild/progress_display.rb
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def format_grouped_messages(raw_messages, indent: " ", width: TTY::Screen.width
until messages.empty?
msg = messages.shift.strip
margin = messages.empty? ? 1 : 2
if lines.last.size + margin + msg.size > width
if lines.last.size + margin + msg.size + 1 > width
lines.last << ","
lines << +""
lines.last << indent << indent << msg
Expand Down

0 comments on commit c5cd1aa

Please sign in to comment.