Skip to content

Commit 33fbe05

Browse files
committed
Small change to use more of the terminal size
1 parent 856ff52 commit 33fbe05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/thor/shell/basic.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def print_wrapped(message, options = {})
234234
unwrapped.split(" ").inject do |memo, word|
235235
word = word.gsub(/\n\005/, "\n").gsub(/\005/, "\n")
236236
counter = 0 if word.include? "\n"
237-
if (counter + word.length + indent) < width
237+
if (counter + word.length + indent) < (width + word.length)
238238
memo = "#{memo} #{word}"
239239
counter += word.length+indent
240240
else

0 commit comments

Comments
 (0)