We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 856ff52 commit 33fbe05Copy full SHA for 33fbe05
lib/thor/shell/basic.rb
@@ -234,7 +234,7 @@ def print_wrapped(message, options = {})
234
unwrapped.split(" ").inject do |memo, word|
235
word = word.gsub(/\n\005/, "\n").gsub(/\005/, "\n")
236
counter = 0 if word.include? "\n"
237
- if (counter + word.length + indent) < width
+ if (counter + word.length + indent) < (width + word.length)
238
memo = "#{memo} #{word}"
239
counter += word.length+indent
240
else
0 commit comments